What is wrong with this? :D
#1

what is wrong with this D:
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "ERROR:Only admins can use this command!");
   if(strcmp(cmd, "/kick", true) ==0) {
   new giveid, reason[128];
   if(sscanf(params, "rs[128]",giveid,reason))return SendClientMessage(playerid, -1, "Usage:/kick [id] [reason]");
   if(giveid == INVALID_PLAYER_ID)return SendClientMessage(playerid, -1, "ERROR:This player isn't connected!");
   else
   {
   new gname[MAX_PLAYER_NAME];
   GetPlayerName(giveid, gname, sizeof(gname));
   GetPlayerName(playerid, pName, sizeof(pName));
   format(string, sizeof(string), "ADMIN KICK : %s has been kicked From The Server ( Reason : %s)", gname,reason);
   SendClientMessageToAll(COLOR_PINK, string);
   Kick(giveid);
   }
   return 1;
   }






errors:
pawn Код:
C:\Users\Billaras\Desktop\[NBTDM]0.3cR5\NBTDM\gamemodes\nbtdm.pwn(2601) : error 076: underfined symbol "params".
2601 line is this:
pawn Код:
if(sscanf(params, "rs[128]",giveid,reason))return SendClientMessage(playerid, -1, "Usage:/kick [id] [reason]");
Reply


Messages In This Thread
What is wrong with this? :D - by vassilis - 02.11.2011, 16:24
Re: What is wrong with this? :D - by suhrab_mujeeb - 02.11.2011, 16:26
Re: What is wrong with this? :D - by vassilis - 02.11.2011, 16:27
Re: What is wrong with this? :D - by Wesley221 - 02.11.2011, 16:38
Re: What is wrong with this? :D - by vassilis - 02.11.2011, 16:40
Re: What is wrong with this? :D - by Kostas' - 02.11.2011, 16:42
Re: What is wrong with this? :D - by vassilis - 02.11.2011, 16:49
Re: What is wrong with this? :D - by Wesley221 - 02.11.2011, 16:49
Re: What is wrong with this? :D - by vassilis - 02.11.2011, 16:52

Forum Jump:


Users browsing this thread: 4 Guest(s)