03.05.2011, 16:23
i dont found an error when im compile it, but i this cmd was not working..
this is the code :
i want set the dini_IntSet to " 0 " but, nothing happen
help me..
this is the code :
pawn Код:
if(strcmp(cmd, "/hapuskan", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /removeucp [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
{
new file[64];
new name[MAX_PLAYER_NAME];
tmp = strtok(cmdtext, idx);
GetPlayerName(playerid, name, sizeof(name));
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /removeucp [playername]");
format(file, sizeof(file),"LARP/Users/%s.ini", name); //am i wrong??
if(!fexist(file))
{
dini_IntSet(file, "Pending", 0); //am i wrong?
GetPlayerName(playerid, name, sizeof(name));
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You cant use this Commands!! (admin only)");
return 1;
}
}
}
help me..