all my commands not working
#1

All my commands aren't working anymore. If I type /announce or whatever command it says:

Blabla has used: /announce testestest
Unkown command.

How to fix this issue, has this to deal with OnPlayerText?
Reply
#2

Do you use any filterscripts? Try removing them.
Reply
#3

pawn Код:
public OnPlayerText(playerid, text[])
{
    new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%d >> %s: %s", playerid, name, text);
    SendPlayerMessageToAll(playerid, textv2);
    return 0; // ignore the default text and send the custom one
}
See the "new textv2[128]"? I would test it first... I mean the numbers, don't remember exactly how it was called, but hopefully you remember!
Reply
#4

All chat input that is preceded with a forward slash is passed directly to OnPlayerCommandText. It never calls OnPlayerText.
Reply
#5

Commands are only working now if APlayerData[playerid][PlayerLevel] > 2.
(is above 2)

Normal command which doesn't need a playerlevel requirement doesn't work.
Reply
#6

, If you have been downloading maps , wich includes old version maps of mta it couldt get bugged < I had this with Something else < Or else it couldt be filterscripts
Reply
#7

Try updating your includes, plugins, re-installing the new 0.3e server pack, good luck.
Reply
#8

Tried it, still ain't working.
Reply
#9

Are you sure that in your server.cfg file, you have the CORRECT gamemode placed, and plugins?(make sure your GM is in the folder "Gamemodes")
If everything is in place, try re-installing 0.3e server package from SA-MP.com ?
Reply
#10

Everything is alright.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)