lil' help here
#1

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);
Reply
#2

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
Reply
#3

Its dini_Get not dini_Int
dini_Int is for writing i think
Reply
#4

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)