lil' help here - 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: lil' help here (
/showthread.php?tid=189619)
lil' help here -
dark_clown - 12.11.2010
hum im getting these errors
i downloaded the money anti cheat but now im editing it to my style
but im having a lil prob
http://pastebin.com/bxr5KaSk
and the error line is
here
pawn Код:
public MessageToAdmins(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new file[100],pName[MAX_PLAYER_NAME];
GetPlayerName(i,pName,MAX_PLAYER_NAME);
format(file,sizeof(file),"MyAdmin/Users/%s.ini",pName);
if(IsPlayerConnected(i) == 1) && if(dini_Int(file,"Level") > 1);
SendClientMessage(i, color, string);
}
return 1;
}
and the line is here
pawn Код:
if(IsPlayerConnected(i) == 1) && if(dini_Int(file,"Level") > 1);
Re: lil' help here -
Mauzen - 12.11.2010
pawn Код:
if((IsPlayerConnected(i) == 1) && (dini_Int(file,"Level") > 1))
SendClientMessage(i, color, string);
dont use if(condition1) && if(condition2), this does not work
use if(condition1 && condition2) instead.
Also a ; after the if() makes it useless
Re: lil' help here -
DRIFT_HUNTER - 12.11.2010
Its dini_Get not dini_Int
dini_Int is for writing i think
Re: lil' help here -
The_Moddler - 12.11.2010
Quote:
Originally Posted by DRIFT_HUNTER
Its dini_Get not dini_Int
dini_Int is for writing i think
|
Don't confuse people if you don't know for what is what.
dini_Get is to retrieve a string data.
dini_Int is to retrieve a interger data.
Re: lil' help here -
DRIFT_HUNTER - 12.11.2010
Quote:
Originally Posted by The_Moddler
Don't confuse people if you don't know for what is what.
dini_Get is to retrieve a string data.
dini_Int is to retrieve a interger data.
|
Opsss...sorry my bad