Stock problem
#1

hi i have this stock all is ok but i get a error



stock CekkaComando(playerid,cmd[])
{
if(!dini_Exists("ConfigurazioneComandi/comandi.ini")) return SendClientMessage(playerid,0x33CCFFAA,"Scusa ma non ce nessun comando/livello settato :/"),0;
if(!dini_Isset("ConfigurazioneComandi/comandi.ini",cmd)) return SendClientMessage(playerid,0x33CCFFAA,"Scusa ma non ce nessun comando/livello settato :/"),0;
if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd)) && gPlayerLogged[playerid] = 1) return 1;
return 0;
}



error .....

error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero

in this line

if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd)) && gPlayerLogged[playerid] = 1) return 1;

what is wrong plz help me
Reply
#2

HTML tagging fail.

pawn Код:
if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd) && gPlayerLogged[playerid] = 1) return 1;
A ')' too much.
Reply
#3

this error now
warning 211: possibly unintended assignment
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero

on this
if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd) && gPlayerLogged[playerid] = 1) return 1;

wtf xD

edit ...
pawn code is <pawn> the html code for pawn
Reply
#4

Oh lol :P

pawn Код:
if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd) && gPlayerLogged[playerid] == 1) return 1;
Hope it kinda fixes it, you forgot a "="
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)