Commands are not working
#1

So when i type some command which are scripted in my gamemode it wont work.

I got only - SERVER: Unknown Command

http://www.bildites.lv/images/7vptz1hhvyxb6qy0083q.png
Reply
#2

Any errors/warnings when compiling your gamemode?
Reply
#3

Did the gamemode files and filterscripts compile properly before you started up the server?
Reply
#4

Yes, i have no errors when compiling. Only when i run server

PHP код:
[18:07:14] *** CreateDynamicObjectExpecting 12 parameter(s), but found 11 
Reply
#5

Can you show "OnPlayerCommandText",
By the way "Wikia" says
Quote:

Returning 0 informs the server that the command hasn't been processed by this script.OnPlayerCommandText will be called in other scripts until one returns 1.If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.

Reply
#6

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{

    return 
1;

Reply
#7

No one can help? I really need help guys
Reply
#8

Show your public OnPlayerCommandText(playerid, cmdtext[]) and check if return 1;
_________________

xXx Stunt Paradise Awesome

Server IP: Click Here!

Hosted Tab Game-MP for 10 Euro / per month
Hosted Tab + Server host 50 slots + Control Panel for 15 Euro
Skype: MahdiAsali
€10 Euro for Hosted List
Reply
#9

do you want this?
pawn Код:
forward OnPlayerCommandPerformed(playerid,cmdtext[],success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        SendClientMessage(playerid,0xFF0000AA,"Unknown Command!, type anything here.. ");
    }
    return 1;
}
Reply
#10

All comands in my gamemode are not working and i have it already
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)