23.03.2012, 02:27
Hello, i am trying to script this command that it searches through all my dini saved file in Scriptfiles/Accounts and what i want it to do is Return the name if a player has a certain variable saved i have tried many codes but it returned the other value i placed. This is what i have
Код:
format(string, sizeof(string), "scriptfiles/Accounts/%s",MAX_ACCOUNTS); if(fexist(string)) { if(dini_Get(string, "Wanted") >= 1)) { format(string2,sizeof(string2),"%s's is wanted",MAX_ACCOUNTS); /// I Know somethings wrong here.... SendClientMessage(playerid,WHITE,string2); } else { SendClientMessage(playerid,WHITE,"No matches found"); } }