help fast please! - 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: help fast please! (
/showthread.php?tid=559438)
help fast please! -
aCloudy - 23.01.2015
Hello.
Can someone tell me what's wrong in this ?
I've already made a stock for "KickAll", But i don't know it shows me that something is wrong with it..
The error:
Код:
C:\Program Files\lvcnrr\gamemodes\stuntDM.pwn(8037) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
PHP код:
CMD:kickall(playerid,params[])
{
new string[128];
if(!IsPlayerName(playerid,"TheKing") && !IsPlayerName(playerid, "Boss")) return SCM(playerid,COLOR_WHITE,"{FF0000}[ERROR]{FFFFFF} You have entered an invalid command, Type /commands or /cmds to see the server commands");
KickAll;
format(string,sizeof(string),"{FF0770}[ADMIN] {FFFFFF}All players have been kicked for an update!");
SendClientMessageToAll(COLOR_WHITE,string);
SendRconCommand("gmx");
return 1;
}
Re: help fast please! -
aCloudy - 23.01.2015
Well fixed.
Someone fixed it for me on .. Skype.
AW: help fast please! -
Saize - 23.01.2015
Try to do it with a for for loop, this might be a better way to do it
PHP код:
for(new i = 1; i <= MAX_PLAYERS; i++)
{
Kick(i);
}
Re: help fast please! -
JonathanFeitosa - 23.01.2015
pawn Код:
for(new i = 1; i <= MAX_PLAYERS; i++)
For
pawn Код:
for(new i = 0; i <= MAX_PLAYERS; i++)