Please help meeee !! :'(
#1

hello,
i use GM, hes filescript don't work (errors)
in Gm: no one can chat, if i write somethink and i press ENTER, don't show, i check filescript there is CMDS : /chaton, /chatoff
CMDS don't work, and i delete it,i didn't know
how i enable chat, or can someone give me /chaton, /chatoff cmds, please!

PS : Sorry for my BAD English.
Reply
#2

Under OnPlayerText, paste the code here.
Reply
#3

what CODE ?
Reply
#4

The whole of OnPlayerText.

Simple.
Reply
#5

im sorry, but i didn't understund
Reply
#6

Quote:
Originally Posted by iGetty
View Post
Under OnPlayerText, paste the code here.
Do as he said
Reply
#7

If you dont know ANYTHING about Troubleshooting Basic error's in Scripts or FS's I recomend rethinking your server, or atleast hire a Scriptor who can help you. If you dont, youll be asking for help alot on here.
Reply
#8

Quote:
Originally Posted by kurzagfx
View Post
If you dont know ANYTHING about Troubleshooting Basic error's in Scripts or FS's I recomend rethinking your server, or atleast hire a Scriptor who can help you. If you dont, youll be asking for help alot on here.
There's two ways to learn.

1) Spam these forums for help.
2) SA-MP Wiki.
Reply
#9

ok, can some one script : /chaton, /chatoff for me ? plzz
Reply
#10

pawn Code:
#include <a_samp>
#include <zcmd>

new ChatOn;

public OnGameModeInit()
{
    ChatOn = 1;
}

public OnPlayerText(playerid, text[])
{
    if(ChatOn == 0)
    {
        SendClientMessage(playerid, -1, "Chat is off.");
        return 0;
    }
    else
    {
        new string[128], pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "%s (%d): %s", pname, playerid, text);
        SendClientMessageToAll(-1, string);
        return 0;
    }
}

command(chaton, playerid, params[])
{
    if(ChatOn == 0)
    {
        ChatOn = 1;
    }
    return 1;
}

command(chatoff, playerid, params[])
{
    if(ChatOn == 1)
    {
        ChatOn = 0;
    }
    return 1;
}
Simple.
Reply
#11

error :
C:\Documents and Settings\******\Bureau\SA-MP Hard Mission\filterscripts\chat.pwn(21) : error 017: undefined symbol "pname"
Reply
#12

Check again, mate.
I made a mistake, so re-copy the code above.
Reply
#13

i don't know how,
i don't know how to script, just plz help me,
i wont spam for help, btw server is ready, only chat problem
Reply
#14

Quote:
Originally Posted by **ahm_ed**
View Post
i don't know how,
i don't know how to script, just plz help me,
i wont spam for help, btw server is ready, only chat problem
I JUST TOLD YOU THE SCRIPT!

PASTE... THE... OnPlayerUpdate!

Fuck sake.
Reply
#15

sorry, im private,
CMDS are working
thank you very much
Reply
#16

-.-, no worries.

Sorry for losing my head -.-.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)