09.11.2011, 05:18
(
Последний раз редактировалось Psymetrix; 09.11.2011 в 06:15.
)
Don't add the number after USA & PAKISTAN. They are already defined as a number.
When you compile your mode, if(gTeam[playerid] == PAKISTAN) will be replaced with if(gTeam[playerid] == 1).
When you compile your mode, if(gTeam[playerid] == PAKISTAN) will be replaced with if(gTeam[playerid] == 1).
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == PAKISTAN)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
return 1;
}
else if(gTeam[playerid] == USA)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
return 1;
}
return true;
}