Commands don't work! [Help please]
#1

Hello.
I can't do commands,for example i did /jetpack,tried to use it in game and it tolds me : "Server unknow command"
All commands i try to make and use won't work
Here is an example of a command:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stats", cmdtext, true, 10) == 0)
{
        new name[MAX_PLAYER_NAME];
        new string[128], Float:armour;
        GetPlayerArmour(playerid,armour);
        new cash = PlayerInfo[playerid][pCash];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "[INFO] Armour: [%f] | Money: [%i] ",armour,cash);
        SendClientMessage(playerid, 0xAFAFAFAA, string);
        return 1;
}
    return 0;
}
Reply
#2

Do you use any other CP like Zcmd ?
if yeou do then remove it because you can't have Zcmd and strcmp at same time.
2nd) Goto the last command and check if it have "return 0;" and remove it. and compile

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 65 seconds.
Reply
#3

Don't know what you mean,that's the only command i have there 'cause i deleted another commands.
Reply
#4

You're using two command processors at the same time..
such as STRCMP, and ZCMD, you can only use one..
Reply
#5

Where did i used ZCMD in my command?
Reply
#6

If you have only 1 command then how you typ'd "/jetpack" ? :S
Reply
#7

I tolded that i deletet another commands :\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)