Stock problem - 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: Stock problem (
/showthread.php?tid=171734)
Stock problem -
iJumbo - 27.08.2010
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
Re: Stock problem -
Hiddos - 27.08.2010
HTML tagging fail.
pawn Код:
if(GetInfo(playerid,"AdminLevel")>=dini_Int("Confi gurazioneComandi/comandi.ini",cmd) && gPlayerLogged[playerid] = 1) return 1;
A ')' too much.
Re: Stock problem -
iJumbo - 27.08.2010
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>
![Huh?](images/smilies/confused.gif)
the html code for pawn
Re: Stock problem -
Hiddos - 27.08.2010
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 "="