14.12.2011, 09:33
Hy guys, i make a script to read from file all factions member and show it to the leader but script don't work, please help me fix the script. Thanks
PHP код:
if(strcmp(cmd, "/allmember", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 0) { return SendClientMessage(playerid, COLOR_LIGHTRED, "Tu nu esti lider !");}
new string2[64];
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
format(string2, sizeof(string2), "LARP/Users/%s.ini", i);
if(PlayerInfo[playerid][pLeader] == dini_Int(string2,"Member"))
{
format(string, 256, "Membrul: %d",string2);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "test");
}
}
return 1;
}