Coding help
#10

Quote:
Originally Posted by Beginnercoder
Посмотреть сообщение
These codes give me errors, are you sure they are correct?

Edit:
PHP код:
public OnPlayerText(playeridtext[])
{
    if(!
strcmp(text"10-0"true))
    {
        
SendClientMessageToAll(0xFF0000FF"CAUTION");
        return 
0;
    }
    return 
1;

Ok I got that to work but I had to delete
PHP код:
    return 1;

to get it to work but in game when I type it, it just says CAUTION, it doesn't say who said it, how do I get it to say who said it?
LoL i knew if would be errors if you had other things under "OnPlayerText" (I thought you knew that, how to fix it i mean..)

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(!strcmp(text, "10-0", true))
    {
        SendClientMessageToAll(0xFF0000FF, "CAUTION");
        return 0;
    }
    //Rest of code
    //Rest of code
    //Rest of code
    return 1;
}
Reply


Messages In This Thread
Coding help - by Beginnercoder - 02.02.2011, 15:31
Re: Coding help - by Sascha - 02.02.2011, 15:35
Re: Coding help - by Beginnercoder - 02.02.2011, 15:37
Re: Coding help - by randomkid88 - 02.02.2011, 15:42
Re: Coding help - by Beginnercoder - 02.02.2011, 15:57
Re: Coding help - by Beginnercoder - 02.02.2011, 16:22
Re: Coding help - by Unknown123 - 02.02.2011, 16:39
Re: Coding help - by Beginnercoder - 09.02.2011, 17:15
Re: Coding help - by randomkid88 - 09.02.2011, 19:29
Re: Coding help - by Unknown123 - 09.02.2011, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)