25.10.2010, 02:03
(
Последний раз редактировалось Miguel; 25.10.2010 в 02:13.
)
If you indent your code, you will notice you missed some brackets:
Indented:
Fix:
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;
}
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;
}