Team problem
#1


OK i puted in the script

Код:
new Team[MAX_PLAYERS];
Код:
#define TEAM_FBI
Код:
public OnPlayerRequestClass(playerid, classid)
{
==> line 635 if(Team[playerid] == TEAM_FBI)
}
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
And i get these eror

Код:
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(635) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\TestServer\gamemodes\NexGeneration.pwn(636) : error 029: invalid expression, assumed zero

2 Errors.
Please help
Reply
#2

Код:
#define TEAM_FBI 1
Код:
public OnPlayerRequestClass(playerid, classid)
{
if(Team[playerid] == TEAM_FBI) {
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)