>>> 2 ErrorS <<< Help Me Plz >>> - 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: >>> 2 ErrorS <<< Help Me Plz >>> (
/showthread.php?tid=83580)
>>> 2 ErrorS <<< Help Me Plz >>> -
monster010 - 26.06.2009
I show these 2 errors
Код:
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY_v2.4.pwn(4255) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY_v2.4.pwn(15118) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
The lines are:
4255
Код:
{
case CHECKPOINT_HOME;
{
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Tu esti~n~~y~Acasa", 5000, 1);
}
}
}
return 1;
15118
Код:
}
SetPlayerCheckpoint(playerid,HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancex], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancey], HouseInfo[PlayerInfo[playerid][pPhousekey]][hEntrancez], 4.0);
GameTextForPlayer(playerid, "~w~Waypoint set ~r~Home", 5000, 1);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_HOME;
}
else
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
Battleskull - 26.06.2009
case CHECKPOINT_HOME; should be case CHECKPOINT_HOME:
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
monster010 - 26.06.2009
It does not work
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
Battleskull - 26.06.2009
why are you using case?
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
monster010 - 26.06.2009
No
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
Battleskull - 26.06.2009
Quote:
Originally Posted by monster010
No
|
no what?
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
monster010 - 26.06.2009
I am understand wrong
What do you mean by using that?
Re: >>> 2 ErrorS <<< Help Me Plz >>> -
Battleskull - 26.06.2009
try if(gPlayerCheckpointStatus[playerid] == CHECKPOINT_HOME) instead of case CHECKPOINT_HOME
Also show me 4254 and 15117