weird.. errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: weird.. errors (
/showthread.php?tid=159648)
weird.. errors -
Kar - 14.07.2010
pawn Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3112) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 001: expected token: ")", but found "if"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : warning 217: loose indentation
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAR~1.pwn(3113) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
3112 ={
3113 = if(gTeam[playerid] == TEAM_CIVILIAN)
pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
if((GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || (GetVehicleModel(GetPlayerVehicleID(playerid)) == 596||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 ||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 ||(GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
{
if(gTeam[playerid] == TEAM_CIVILIAN)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_RED,"You are not part of the Los Santos Police Department. Only Polce Officer's May Enter This Vehicle");
}
else if(gTeam[playerid] != TEAM_COP)
{
SendClientMessage(playerid,COLOR_RED,"lol");
}
}
}
Re: weird.. errors -
CuervO - 14.07.2010
Forgot and misplaced many ')'
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 596|| GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
Re: weird.. errors -
Carlton - 14.07.2010
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 497 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 596||GetVehicleModel(GetPlayerVehicleID(playerid)) == 597 ||GetVehicleModel(GetPlayerVehicleID(playerid)) == 598 ||GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
{
Aww, Cuervo_Negro beat me to it.
Re: weird.. errors -
Kar - 14.07.2010
lol thankyou i failed epicy on that one<.<