SA-MP Forums Archive
[HELP] This Command will not Debug in Pawno! - 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: [HELP] This Command will not Debug in Pawno! (/showthread.php?tid=219295)



[HELP] This Command will not Debug in Pawno! - RedCrownX - 01.02.2011

Код:
If (strcmp(cmttext, "/ragequit", true)==0)
{
SendClientMessageToAll(COLOR_WHITE, "----");
*/ Contiunes with that until end*/
Kick(givenplayerid)
}
return 1;
}
I know this isnt correct, but what is worong?


Re: [HELP] This Command will not Debug in Pawno! - RedCrownX - 01.02.2011

Also, i want them to be banned for 12 hours.


Re: [HELP] This Command will not Debug in Pawno! - Macluawn - 01.02.2011

you haven't assigned variable "givenplayerid" a value.


Re: [HELP] This Command will not Debug in Pawno! - hadzx - 01.02.2011

dont know about 12hrs ban etc but you can do

Kick(playerid);
Ban(playerid);
Or On Player Death
Kick(killerid);
Ban(killerid);

theirs the kick/ban functions


Re: [HELP] This Command will not Debug in Pawno! - RedCrownX - 01.02.2011

this is why pawno failed. They don't have Suggestions like in VB.net


Re: [HELP] This Command will not Debug in Pawno! - Marricio - 01.02.2011

givenplayerid = playerid;