06.02.2010, 16:41
Hello, i'm makling a new script but i came to this error... idk why i get it. That is because im not really able to understand what the error is trying to say...
here is my script:
and my errors
can anyone explain what this invalid expression, assumeder zero means and why it pops up? so i can fix this?
here is my script:
Код:
public SetupPlayerForClassSelection(playerid) { SetPlayerInterior(playerid,11); SetPlayerPos(playerid,508.7362,-87.4335,998.9609); SetPlayerCameraPos(playerid,508.7362,-83.4335,998.9609); SetPlayerCameraLookAt(playerid,508.7362,-87.4335,998.9609); SetPlayerFacingAngle(playerid,0.0); } public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerTeamFromClass(playerid, classid); return 1; } SetPlayerTeamFromClass(playerid, classid) { if (classid == 0) { gTeam[playerid] = TEAM_POLICE; } else { gTeam[playerid] = TEAM_CRIMINAL; } }
Код:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp\filterscripts\Untitled.pwn(38) : warning 235: public function lacks forward declaration (symbol "SetupPlayerForClassSelection") C:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp\filterscripts\Untitled.pwn(42) : warning 217: loose indentation C:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp\filterscripts\Untitled.pwn(43) : warning 217: loose indentation C:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp\filterscripts\Untitled.pwn(61) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\samp\filterscripts\Untitled.pwn(65) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.