errors (+REP) - 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)
+--- Thread: errors (+REP) (
/showthread.php?tid=601147)
errors (+REP) -
[SU]Spartan - 17.02.2016
Aight so I got these errors on this code:
Код:
if(vip[playerid] = 1);
{
SetPlayerArmour(playerid,50);
}
else if(vip[playerid] < 2);
{
SetPlayerArmour(playerid,100);
}
it gives me these errors:
Im giving rep.Note that this code is under public OnPlayerSpawn
Код:
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1216) : warning 211: possibly unintended assignment
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1216) : error 036: empty statement
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1220) : error 029: invalid expression, assumed zero
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1220) : warning 215: expression has no effect
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1220) : error 001: expected token: ";", but found "if"
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1220) : error 036: empty statement
C:\Users\John\Desktop\ESDS 0.3.7 NEW\gamemodes\ESDS.pwn(1220) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: errors (+REP) -
saffierr - 17.02.2016
PHP код:
if(vip[playerid] == 1)
{
SetPlayerArmour(playerid,50);
}
else if(vip[playerid] < 2)
{
SetPlayerArmour(playerid,100);
}
Re: errors (+REP) -
[SU]Spartan - 17.02.2016
Wow,that worked thanks you +reped