errors (+REP)
#1

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.
Reply
#2

PHP код:
if(vip[playerid] == 1)
{
SetPlayerArmour(playerid,50);
}
else if(
vip[playerid] < 2)
{
SetPlayerArmour(playerid,100);

Reply
#3

Wow,that worked thanks you +reped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)