commands don't work in the server ? -
Chrisis - 12.07.2013
i was using strcmp , and when i connect to my server ( local host / samp.exe ) no commands work at all ! but other functions work like ShowPlayerDialog , SetSpawnInfo etc .... , i though the problem is in strcmp so i removed it and i used zcmd , but the problem is the same ! all commands don't work ! please help me .
Re: commands don't work in the server ? -
RALL0 - 12.07.2013
Show us one of your commands
Re : commands don't work in the server ? -
Chrisis - 12.07.2013
a very simple one :
pawn Код:
CMD:afk(playerid, params[])
{
SendClientMessage(playerid,COLOR_RED,"AFK has been removed to avoid abuse .");
return 1;
}
and another one :
pawn Код:
CMD:jp(playerid, params[])
{
if(Class[playerid] == 3)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
SendClientMessage(playerid,COLOR_GREEN,"JetPack activated");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, COLOR_RED,"Only JetTroopers can use jet packs");
return 1;
}
you see ? both of them don't work for me . please help ?
Re: commands don't work in the server ? -
RALL0 - 12.07.2013
Alright, type a command and then show the chat log and see what it says
Re : commands don't work in the server ? -
Chrisis - 12.07.2013
it dosen't show any thing !
no SERVER:UNKNOWN COMMAND
no thing at all ! like i haven't type it !
Re: commands don't work in the server ? -
RALL0 - 12.07.2013
Chat logs, show it, it ussually shows what the problem is
Re : commands don't work in the server ? -
Chrisis - 12.07.2013
[code][14:07:52] {FFFFFF}SA-MP {B9C9BF}0.3x-R1-2 {FFFFFF}Started
[14:07:55] Connecting to 127.0.0.1:7777...
[14:07:56] Connected. Joining the game...
[14:07:56] [Player] has joined the server !
[14:07:56] Connected to {B9C9BF}World's War III [WW] {v : 1.1}
[code]
Player is the CONNECT LOCAL HOST name
i was just repeating ( spamming commands ) and nothing show up
Re : commands don't work in the server ? -
Chrisis - 13.07.2013
please i need answers
Re: commands don't work in the server ? -
Bakr - 13.07.2013
Have you removed OnPlayerCommandText from your script?
Respuesta: commands don't work in the server ? -
PHudson - 13.07.2013
Have you removed OnPlayerCommandText? Are you using OnPlayerCommandPermorfed or OnPlayerCommandReceived? If yes, post them.