Commands don't work! [Help please] -
Edii - 04.06.2012
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;
}
Re: Commands don't work! [Help please] -
Rudy_ - 04.06.2012
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.
Re: Commands don't work! [Help please] -
Edii - 04.06.2012
Don't know what you mean,that's the only command i have there 'cause i deleted another commands.
Re: Commands don't work! [Help please] -
Sandiel - 04.06.2012
You're using two command processors at the same time..
such as STRCMP, and ZCMD, you can only use one..
Re: Commands don't work! [Help please] -
Edii - 04.06.2012
Where did i used ZCMD in my command?
Re: Commands don't work! [Help please] -
Rudy_ - 04.06.2012
If you have only 1 command then how you typ'd "/jetpack" ? :S
Re: Commands don't work! [Help please] -
Edii - 04.06.2012
I tolded that i deletet another commands :\