/kick command problem (dcmd) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /kick command problem (dcmd) (
/showthread.php?tid=156166)
/kick command problem (dcmd) -
oliverrud - 21.06.2010
Hey I got a problem with my /kick [playerid] [reason] command. My code is:
pawn Код:
dcmd_kick(playerid, params[])
{
new id, reason;
if (sscanf(params, "uz", id,reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /kick [playerid] [reason]");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,0xFF0000AA, "Player not found");
else
{
new string[256];
Kick(id);
format(string,256,"Player %d has been kicked, reason: %s",id,reason);
SendClientMessageToAll(COLOR_YELLOW,string);
}
}
Oh yea output ingame: I tried /kick 0 Test yo reason is working as supposed however the id just ended up being 101?
Re: /kick command problem (dcmd) -
Flashy - 21.06.2010
What? D;
Iґm so sad that some gyus canґt speak english
Re: /kick command problem (dcmd) -
oliverrud - 21.06.2010
Quote:
Originally Posted by Flashy
What? D;
Iґm so sad that some gyus canґt speak english
|
What are you talking about? "gyus" right, learn to read english if you don't mind, retard <.<
Re: /kick command problem (dcmd) -
NewTorran - 21.06.2010
Quote:
Originally Posted by oliverrud
Quote:
Originally Posted by Flashy
What? D;
Iґm so sad that some gyus canґt speak english
|
What are you talking about? "gyus" right, learn to read english if you don't mind, retard <.<
|
Its a typo.
Try this:
pawn Код:
dcmd_kick(playerid, params[])
{
new id, reason;
if(sscanf(params, "uz", id,reason)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /kick [playerid] [reason]");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,0xFF0000AA, "Player not found");
new string[128];
format(string,256,"Player %d has been kicked, reason: %s",id,reason);
SendClientMessageToAll(COLOR_YELLOW,string);
Kick(id);
return 1;
}
Re: /kick command problem (dcmd) -
oliverrud - 21.06.2010
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by oliverrud
Quote:
Originally Posted by Flashy
What? D;
Iґm so sad that some gyus canґt speak english
|
What are you talking about? "gyus" right, learn to read english if you don't mind, retard <.<
|
Its a typo.
Try this:
pawn Код:
dcmd_kick(playerid, params[]) { new id, reason; if(sscanf(params, "uz", id,reason)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /kick [playerid] [reason]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,0xFF0000AA, "Player not found");
new string[128]; format(string,256,"Player %d has been kicked, reason: %s",id,reason); SendClientMessageToAll(COLOR_YELLOW,string); Kick(id); return 1; }
|
First: I know it was a typo, reason for me saying it was simply: Iґm so sad that some gyus canґt speak english
Anyway, thanks for the help
Re: /kick command problem (dcmd) -
Flashy - 21.06.2010
Quote:
Originally Posted by oliverrud
Quote:
Originally Posted by Flashy
What? D;
Iґm so sad that some gyus canґt speak english
|
What are you talking about? "gyus" right, learn to read english if you don't mind, retard <.<
|
STFU and stop to insulting nub. That was a typo and not intentional. Your first post was so non english that I must read it 5 times to understand what you mean, oh sry I forgot: I even donґt understand what you mean.
With your attitude donґt wonder if no one help you.
Re: /kick command problem (dcmd) -
oliverrud - 21.06.2010
Quote:
Originally Posted by Flashy
Quote:
Originally Posted by oliverrud
Quote:
Originally Posted by Flashy
What? D;
Iґm so sad that some gyus canґt speak english
|
What are you talking about? "gyus" right, learn to read english if you don't mind, retard <.<
|
STFU and stop to insulting nub. That was a typo and not intentional. Your first post was so non english that I must read it 5 times to understand what you mean, oh sry I forgot: I even donґt understand what you mean.
With your attitude donґt wonder if no one help you.
|
Excuse me? Please spare me for your noobish comments, if you don't have anything good to say then please leave, I do not need you, but you obviously you need me to feel cool with your 1337 comments