error 004: function "S@@_OnPlayerCommandText" is not implemented
#4

Hi, here is an example of using the OnPlayerCommandText:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/lock",true)) 
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_MSG,"You have to be inside a 
vehicle.");
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(i == playerid) continue;
            SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i,0,1);
        }
        return 1;
    }
    return 0;
}
And for further information you always have the site dedicated to the learning of PAWN:https://sampwiki.blast.hk/wiki/OnPlayerCommandText
Reply


Messages In This Thread
error 004: function "S@@_OnPlayerCommandText" is not implemented - by SH0x - 17.02.2017, 14:50
Re: error 004: function "S@@_OnPlayerCommandText" is not implemented - by Vince - 17.02.2017, 15:20
Re: error 004: function "S@@_OnPlayerCommandText" is not implemented - by SH0x - 17.02.2017, 15:34
Re: error 004: function "S@@_OnPlayerCommandText" is not implemented - by tekass - 05.06.2017, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)