commands don't work in the server ?
#1

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

Show us one of your commands
Reply
#3

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 ?
Reply
#4

Alright, type a command and then show the chat log and see what it says
Reply
#5

it dosen't show any thing !

no SERVER:UNKNOWN COMMAND

no thing at all ! like i haven't type it !
Reply
#6

Chat logs, show it, it ussually shows what the problem is
Reply
#7

[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
Reply
#8

please i need answers
Reply
#9

Have you removed OnPlayerCommandText from your script?
Reply
#10

Have you removed OnPlayerCommandText? Are you using OnPlayerCommandPermorfed or OnPlayerCommandReceived? If yes, post them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)