error 029: invalid expression, assumed zero
#1

hey guys any ideas why it does this??

line:
732
Код:
   	else SendClientMessage(playerid, -1, "You're not an administration");
after that
Код:
   	return 1;
 }
Reply
#2

show the full command
Reply
#3

Код:
CMD:aduty(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
 	SendClientMessage(playerid, -1, "you are now on Administration Duty");
    SendClientMessageToAll(-1, "Administration is now on duty!(/report if you need help)");
    SetPlayerColor(playerid, 0xFF0000);
    }
    else
    {
   	SendClientMessage(playerid, -1, "you are now off Administration Duty");
    SendClientMessageToAll(-1, "Administration is now off duty!(Leave him to Roleplay)");
    SetPlayerColor(playerid, 0xFFFFFF);
    }
   	else SendClientMessage(playerid, -1, "You're not an administration");
   	return 1;
 }
Reply
#4

try this
pawn Код:
CMD:aduty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        SendClientMessage(playerid, -1, "you are now on Administration Duty");
        SendClientMessageToAll(-1, "Administration is now on duty!(/report if you need help)");
    }
    else
    {
        SendClientMessage(playerid, -1, "you are now off Administration Duty");
        SendClientMessageToAll(-1, "Administration is now off duty!(Leave him to Roleplay)");
        SetPlayerColor(playerid, 0xFFFFFF);
    }
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "You're not an administration");
    return 1;
}
Reply
#5

Thank you worked

Repd+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)