Jump to content
  • 0

pomoc proměna


RejW

Dotaz

Mám vytvořenou definici...

 

new PlayerTeam[MAX_PLAYERS];

 

 

a v tomto řádku mi to nepřečte...

 

public OnPlayerRequestClass(playerid, classid)

{

SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);

SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);

if(classid == 0)

{

PlayerTeam[playerid] = 0;

SetPlayerTeam(playerid,0);

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0

daj si za ten riadok toto:

printf("RequestClass %i %i",playerid,classid);

a sleduj či sa ti to vypíše v konzole/logu. Ak to tam nájdeš tak to prečítalo, ak nie tak máš niekde chybu (v tom kóde čo si poslal chyba nie je).

Link to comment
Share on other sites

  • 0
iaN":2fetmjcm]Niečo sa mi nezdá na tom
 SetPlayerTeam

Hádže ti to errory ? ( asi nie :d prečo sa pýtam )

 

 

A co na tom je jako špatně ?

Link to comment
Share on other sites

  • 0

neviem mno...

 

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);


if(PlayerTeam[playerid] = 0)// či je 0
{
SCM(playerid, Farba, "Máš PlayerTeam = 0"); // sprava
}
if(PlayerTeam[playerid] = 1)
{
SCM(..."Máš PlayerTeam = 1");
}

 

A ak chceš mu nastaviť tým tak napr.

dcmd_team1(..)
{
PlayerTeam[playerid] = 1; // dá mu hodnotu 1 mislím ... ja robim cez PVary
return 1;
}

 

EDIT:// ak tam mám niečo/všetko zle tak sa ospravedlňujem...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...