Quote:
Originally Posted by Mr_Scripter
Hello guys, i'm getting some errors here
pawn Код:
E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ")", but found "-integer value-" E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : warning 215: expression has no effect E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 001: expected token: ";", but found ")" E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : error 029: invalid expression, assumed zero E:\GTA - San Andreas\Pawno Scripting\gamemodes\Script.pwn(330) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
i don't think somethings wrong here
pawn Код:
public OnPlayerSpawn(playerid) { if(gTeam[playerid] == Teams 1); { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 0870,1815.6981,10.8203,193); return 1; } else if(gTeam[playerid] == Team 2); { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 3330,1861.1024,17.9259,116); return 1; }
anyone know what the problem?
|
;'s are only valid when declaring something:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 0870,1815.6981,10.8203,193);
return 1;
}
else if(gTeam[playerid] == 2)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 3330,1861.1024,17.9259,116);
return 1;
}
return true;
}