[SOLVED]2 Errors ?
#9

Quote:
Originally Posted by Jeffry
Removing the strval?
Yes

pawn Код:
dcmd_unbanname(playerid,params[]) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
if(PlayerInfo[playerid][Level] >= 4) {
  new tmp[256], Index;   tmp = strtok(params,Index);
  if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /unbanname [name]");
new adminname[MAX_PLAYER_NAME], string[128], unbanname[MAX_PLAYER_NAME];
unbanname = tmp;

if(udb_Exists(unbanname))   {
dUserSetINT(unbanname).("banned", 0);
GetPlayerName(playerid, adminname, sizeof(adminname));
CMDMessageToAdmins(playerid,"UNBANNAME");
format(string,sizeof(string),"Server: %s has been unbanned by %s (ID: %d).",unbanname,adminname,playerid);
SendClientMessageToAll(green,string);
SaveToFile("UnBanLog",string);
print(string);
return 1;
} else return SendClientMessage(playerid, red, "ERROR: No player with this name.");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
}
Reply


Messages In This Thread
[SOLVED]2 Errors ? - by Jeffry - 25.02.2010, 14:57
Re: [Hmm]2 Errors ? - by skynny - 25.02.2010, 15:11
Re: [Hmm]2 Errors ? - by Jeffry - 25.02.2010, 15:21
Re: [Hmm]2 Errors ? - by Jeffry - 26.02.2010, 11:51
Re: [Hmm]2 Errors ? - by wafffllesss - 26.02.2010, 12:13
Re: [Hmm]2 Errors ? - by Jeffry - 26.02.2010, 12:23
Re: [Hmm]2 Errors ? - by wafffllesss - 26.02.2010, 12:24
Re: [Hmm]2 Errors ? - by Jeffry - 26.02.2010, 12:30
Re: [Hmm]2 Errors ? - by wafffllesss - 26.02.2010, 12:31
Re: [Hmm]2 Errors ? - by Jeffry - 26.02.2010, 12:35
Re: [Hmm]2 Errors ? - by wafffllesss - 26.02.2010, 12:37
Re: [Hmm]2 Errors ? - by Jeffry - 26.02.2010, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)