ZCMD NOT WORKING!
#1

I have simple cmd like:
pawn Code:
CMD:pagalba(playerid,params[])
{
    SendClientMessage(playerid,GREY,"Sveiki atvykж б Zombie Apocalypse Roleplay");
    SendClientMessage(playerid,GREY,"Animacijos  - /anim");
    SendClientMessage(playerid,GREY,"Inventorius - mygtukas Y");
    SendClientMessage(playerid,GREY,"Mыsш Forumas: zarp.forumup.lt");
    return 1;
}
And when in game I type /pagalba it just do nothing and even don't show "server: unknown command" or something

I've got
pawn Code:
#include <zcmd>
all includes
pawn Code:
#include <a_samp>
#include <float>
#include <inventory>
#include <zcmd>
#include <sscanf2>
So please help me
Reply
#2

You post the line under "OnPlayerCommandText"?
Reply
#3

pawn Code:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    // No Commands HERE
    return 0;
}
CMD:pagalba( playerid, params[ ] )
{ // Commands out of callbacks
    SendClientMessage( playerid, GREY, "Sveiki atvykж б Zombie Apocalypse Roleplay" );
    SendClientMessage( playerid, GREY, "Animacijos  - /anim" );
    SendClientMessage( playerid, GREY, "Inventorius - mygtukas Y" );
    SendClientMessage( playerid, GREY, "Mыsш Forumas: zarp.forumup.lt" );
    return 1;
}
public OnPlayerText( playerid, text[ ] )
{
    // An Example of second Callback
    return 1;
}
Reply
#4

post it under onplayercommandtext
___________________________________
Reply
#5

Tell all the includes you have, and it doesn't have to be under onplayercommandtext.
Reply
#6

Quote:
Originally Posted by ProdrifterX
View Post
post it under onplayercommandtext
___________________________________
Don't post this in your reply

it's (AD)

Also, ZCMD Commands never inside any callback.
Reply
#7

[QUOTE=ProdrifterX;1638019]post it under onplayercommandtext
___________________________________
**PICTURE CENSORED FOR ADVERTISING**

no.. dont do that with ZCMD
Reply
#8

pawn Code:
cmd:pagalba (playerid, params[])
{
    SendClientMessage(playerid,GREY,"Sveiki atvykж б Zombie Apocalypse Roleplay");
    SendClientMessage(playerid,GREY,"Animacijos  - /anim");
    SendClientMessage(playerid,GREY,"Inventorius - mygtukas Y");
    SendClientMessage(playerid,GREY,"Mыsш Forumas: zarp.forumup.lt");
    return 1;
}

Note Delete this line
pawn Code:
OnPlayerCommandText
Then write it and it will work
Reply
#9

Quote:
Originally Posted by RoleplayEditor
View Post
pawn Code:
cmd:pagalba (playerid, params[])
{
    SendClientMessage(playerid,GREY,"Sveiki atvykж б Zombie Apocalypse Roleplay");
    SendClientMessage(playerid,GREY,"Animacijos  - /anim");
    SendClientMessage(playerid,GREY,"Inventorius - mygtukas Y");
    SendClientMessage(playerid,GREY,"Mыsш Forumas: zarp.forumup.lt");
    return 1;
}

Note Delete this line
pawn Code:
OnPlayerCommandText
Then write it and it will work
That doesn't do anything, i have public OnPlayerCommandText and my zcmd commands work fine.
Reply
#10

and remove the space

pawn Code:
cmd:pagalba(playerid, params[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)