2error's
#6

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/rules", cmdtext, true, 10) ==0)
    {
        ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit");
        return 1;
    }
    return 1; //change this to 1
}
u need to change it to return 1; because when u use some commands it will show u Server unknown commands .
but the commands that u use i work perfectly ! . .
You can't change the return value on that callback. It's like returning a value the equals with text and not a command

Here's the correct syntax.
pawn Код:
#define DIALOG_RULES 8000

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/rules", true))
    {
        ShowPlayerDialog(playerid,DIALOG_RULES,DIALOG_STYLE_MSGBOX,"{FF0000}.: RULES :.","{FFFFFF}1.Must Follow The {FFFF00}Rules\n2.No car {FFFF00}ramming !\n3.No{FFFF00} Mod/Cleo/Soibet/Hacking/Cheating - {FF0000}NOT ALLOWED! \n4.Respect The {0000FF}Admin and Another {FFFF00}Player!\n5.{FF0000}Report {FFFFFF} if you see {FF0000}cheaters/hackers! {FFFFFF}use /report [id] [reason] ","Accept","Exit");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
2error's - by Tuntun - 27.07.2012, 15:11
Re: 2error's - by TheDeath - 27.07.2012, 15:13
Re: 2error's - by Tuntun - 27.07.2012, 15:18
Re: 2error's - by Roko_foko - 27.07.2012, 15:21
Re: 2error's - by Devilxz97 - 27.07.2012, 15:25
Re: 2error's - by Alexis1999 - 27.07.2012, 15:33
Re: 2error's - by nton - 27.07.2012, 16:46

Forum Jump:


Users browsing this thread: 1 Guest(s)