wrong code?
#2

It's because you have an else statement but there is no matching if statement!

Also please indent code for the love of god

pawn Код:
if(!strcmp(cmdtext, "/rc", true))
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        if (adminlevel[playerid] >= 5)
        {
            SetVehicleToRespawn(i);
            new str[100];
            format(str,sizeof str,"0,13%s respawned all cars.",sendername);
            IRC_GroupSay(IRC_Group, EchoChan,str);
        }
        else SendClientMessage(playerid, RED, "You cannot use this command!");
    }
    return 1;
}
I believe that's what you intended
Reply


Messages In This Thread
wrong code? - by Face9000 - 05.12.2010, 15:28
Re: wrong code? - by JaTochNietDan - 05.12.2010, 15:33
Re: wrong code? - by Face9000 - 05.12.2010, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)