Problem with ZCMD
#1

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
Reply
#2

which one is the line 231?
Reply
#3

This
Код:
COMMAND:help(playerid, params[])
Reply
#4

I think it's in OnPlayerCommandText. Take it out from there.
Reply
#5

You must put ur command outside ANY callback!
Reply
#6

Thanks Guys, problem fixed.
Reply
#7

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");
Reply
#8

pawn Код:
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help menu", "General\nFactions\nCells\nJobs\nAnimations\nAdmin Commands", "Select", "Quit");
Reply
#9

Thanks (lol i'm stupid, i forgot the \nAnimations)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)