Invalid expression, assumed zero
#1

I get the error on this code:
PHP код:
if(strcmp(cmd,"/csrepair",true)==)
    {
        if(
IsPlayerInRangeOfPoint(playerid,1,624.725952, -22.4632681002.037719))
        {
            if(
PlayerInfo[playerid][pJob] == && JobDuty[playerid] == 0)
                {
                    new 
vehid GetPlayerVehicleID(playerid);
                    if(
vehid && PlayerInfo[playerid][pJob] == && JobDuty[playerid] == 1)
                    {
                        
RepairVehicle(vehid);
                        
format(stringsizeof(string), "* %s uses his utilities to repair the vehicle."sendername);
                        
ProxDetector(10.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        return 
1;
                    }
                        else {
                        
SendClientMessage(playerid,COLOR_YELLOW,"[Chop Shop] You aren't in a Vehicle to repair!");
                        return 
1;
                           }
                               else {
                               
SendClientMessage(playerid,COLOR_YELLOW,"[Chop Shop] You are not On-Duty at the Chop Shop!");
                            return 
1;
                            }
                                    else {
                                
SendClientMessage(playerid,COLOR_YELLOW,"[Chop Shop] You aren't at the Repair Spot!");
                                return 
1;
                                 }
            }
        }
return 
1;
    } 
At every else { }
Reply


Messages In This Thread
Invalid expression, assumed zero - by Jack_Leslie - 24.06.2011, 05:00
Re: Invalid expression, assumed zero - by Jack_Leslie - 24.06.2011, 06:12
Re: Invalid expression, assumed zero - by [MG]Dimi - 24.06.2011, 06:22
Re: Invalid expression, assumed zero - by Jack_Leslie - 24.06.2011, 07:03

Forum Jump:


Users browsing this thread: 1 Guest(s)