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=273196)
Problem with ZCMD -
Soumi - 31.07.2011
Hello
i have a problem with my ZCMD command
on the top of my script i have this..
Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
and here's the commands
Код:
COMMAND:help(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help Menu", "Choose the type of commands", "General\nFactions\nCells\nJobs\Animations\nAdmin Commands", "Select", "Quit");
return 1;
}
And i get 4 errors
Код:
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(231) : error 017: undefined symbol "cmd_help"
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(231) : fatal error 107: too many error messages on one line
Help me please
Thanks
Re: Problem with ZCMD -
Macluawn - 31.07.2011
which one is the line 231?
Re : Problem with ZCMD -
Soumi - 31.07.2011
This
Код:
COMMAND:help(playerid, params[])
Re: Problem with ZCMD -
MadeMan - 31.07.2011
I think it's in OnPlayerCommandText. Take it out from there.
AW: Problem with ZCMD -
samtey - 31.07.2011
You must put ur command outside ANY callback!
Re : Problem with ZCMD -
Soumi - 31.07.2011
Thanks Guys, problem fixed.
Re : Problem with ZCMD -
Soumi - 31.07.2011
Now i'm getting this error.
Код:
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(232) : error 027: invalid character constant
C:\Users\user\Documents\MPRP\gamemodes\MPRP.pwn(232) : error 027: invalid character constant
Here's the line:
Код:
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help menu", "General\nFactions\nCells\nJobs\Animations\nAdmin Commands", "Select", "Quit");
Re: Problem with ZCMD -
MadeMan - 31.07.2011
pawn Код:
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help menu", "General\nFactions\nCells\nJobs\nAnimations\nAdmin Commands", "Select", "Quit");
Re : Re: Problem with ZCMD -
Soumi - 31.07.2011
Thanks (lol i'm stupid, i forgot the \
nAnimations)