Again, same problem
#1

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.
Reply
#2

PLEASE HELP ME D:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)