SA-MP Forums Archive
Again, same problem - 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)
+--- Thread: Again, same problem (/showthread.php?tid=314094)



[HELP] Again, same problem PLEASE HELP D: - NaTkAkN - 28.01.2012

Hi, I had already asked for help in the usual way, but I have problems again.
This is the code:


dcmd_kickclan(playerid,params[])
{
new name[24];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i,name,24);
if(strfind(name,params,true) != -1)
{
Kick(i);
}
}
return 1;
}


This code is correct, but if I type I get kicked because I too am part of i.
You can create me in DCMD cmd always, if you also want sscanf2 with this info:

params []
invalid player
No kick playerid
player is not connected

?

Thank you very much.


Re: Again, same problem - NaTkAkN - 28.01.2012

PLEASE HELP ME D: