problem with ZCMD - 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: problem with ZCMD (
/showthread.php?tid=260254)
problem with ZCMD -
VivianKris - 08.06.2011
Hello guys.
I done this,i want to make the two different CMD to does the samething.
so i write
Код:
CMD:whisper(playerid, params[])
{
blabla...
return 1;
}
CMD:w(playerid, params[])
{
return cmd_whisper(playerid, params[]);
}
the Pawno give me a error:
Код:
invalid expression, assumed zero
Re: problem with ZCMD - Deskoft - 08.06.2011
pawn Код:
CMD:whisper(playerid, params[])
{
return 1;
}
CMD:w(playerid, params[])
{
return cmd_whisper(playerid, params);
}
Re: problem with ZCMD -
Snipa - 08.06.2011
Getting this aswell.
Re: problem with ZCMD - Deskoft - 08.06.2011
Quote:
Originally Posted by Deskoft
pawn Код:
CMD:whisper(playerid, params[]) { return 1; }
CMD:w(playerid, params[]) { return cmd_whisper(playerid, params); }
|
That didn't return any errors, atleast in my compiler, and it shouldn't, as I don't find any possible error in those 10 lines, the error was because of the
"params[]"
Re: problem with ZCMD -
VivianKris - 08.06.2011
THANKS