help big problem
#1

i got my own server is was work nice and correct i have putted script with

zcmd include

when i use

#include <zcmd>


every thing get

Unknown Command


iand i add this

Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    return 1;
}
nothing work too!
Reply
#2

So in plain English, you added this to the script, and now every command is returning "Unknown Command"?
Reply
#3

How to install ZCMD:

1. Add #include <zcmd>
2. Change
Код:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    // Things
    return 0;
}
to
Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    // Things

    if( success == 0 ) return SendClientMessage( playerid, -1, "SERVER: Unknown command !" );

    return 1;
}
3. Add before OnPlayerCommandPerformed that:
Код:
public OnPlayerCommandReceived( playerid, cmdtext[ ] )
    return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)