how to fix that ?????
#2

If you indent your code, you will notice you missed some brackets:

Indented:
pawn Код:
if (strcmp("/gw", cmdtext, true, 10) == 0) // you don't need to specify how many characters you're going to use (10)
{
    if(IsPlayerAdmin(playerid))
    // there should be a bracket here
        SendClientMessage(playerid, COLOR_YELLOW, "================GW Admins Help=============");
        SendClientMessage(playerid, COLOR_YELLOW, "================/hi, /gw=============");
        SendClientMessage(playerid, COLOR_YELLOW, "================GW Admins Help=============");
    // same here
    else
    {
        SendClientMessage(playerid, 0xff0000ff, "You are not an admin !!!");
    }
    return 1;
}
Fix:
pawn Код:
if (strcmp("/gw", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "================GW Admins Help=============");
        SendClientMessage(playerid, COLOR_YELLOW, "================/hi, /gw=============");
        SendClientMessage(playerid, COLOR_YELLOW, "================GW Admins Help=============");
    }
    else
    {
        SendClientMessage(playerid, 0xff0000ff, "You are not an admin !!!");
    }
    return 1;
}
Reply


Messages In This Thread
how to fix that ????? - by MBX97 - 25.10.2010, 00:35
Re: how to fix that ????? - by Miguel - 25.10.2010, 02:03
Re: how to fix that ????? - by MBX97 - 25.10.2010, 02:21
Re: how to fix that ????? - by MBX97 - 25.10.2010, 02:28
Re: how to fix that ????? - by Miguel - 25.10.2010, 03:37
Re: how to fix that ????? - by Hal - 25.10.2010, 03:40
Re: how to fix that ????? - by MBX97 - 25.10.2010, 10:18
Re: how to fix that ????? - by MBX97 - 25.10.2010, 23:05

Forum Jump:


Users browsing this thread: 1 Guest(s)