This command works fine, but after it says "invalid command" at the end? - 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: This command works fine, but after it says "invalid command" at the end? (
/showthread.php?tid=273031)
This command works fine, but after it says "invalid command" at the end? -
Donya - 31.07.2011
it lists the online groups, then it says Invalid command.
Re: This command works fine, but after it says "invalid command" at the end? -
CmZxC - 31.07.2011
add return 1 to here :
pawn Код:
{
if(PlayerInfo[i][Group] == 0) continue;
gCount++;
Groupss[PlayerInfo[i][Group]] = true;
format(str,sizeof(str),"%s(%d),", Groups[PlayerInfo[i][Group]][GroupName], PlayerInfo[i][Group]);
strins(string,str,strlen(string));
return 1; // Here.
}
Re: This command works fine, but after it says "invalid command" at the end? -
Donya - 31.07.2011
but then
pawn Код:
strdel(string, strlen(string) - 1, strlen(string));
..?