Server command not found [+REP].
#1

Ok, so in my server i've this function;

pawn Код:
if(!strcmp(option, "list", true))
    {
        if(PlayerInfo[playerid][pVehicles] == 0) return SCM(playerid, COLOR_LIGHTRED, "You do not own any vehicles.");
        SCMEx(playerid, COLOR_GREEN, "______________Your Vehicles(%d)______________", PlayerInfo[playerid][pVehicles]);
        for(new i = 1; i <= PlayerInfo[playerid][pVehicles]; i++)
        {
            if(VehicleStatus[playerid][i][carOn] == 1)
            {
                if(FindVehicleByPlate(VehicleStatus[playerid][i][carPlate]))
                {
                    SCMEx(playerid, COLOR_GREEN, "Vehicle %d: %s, Lock[%d], Alarm[%d], Immobiliser[%d], Insurances[%d], Times Destroyed[%d], Next Insurance Price[$%d]", i, VehicleNames[VehicleStatus[playerid][i][carModel]-400],VehicleStatus[playerid][i][carLock],VehicleStatus[playerid][i][carAlarm],VehicleStatus[playerid][i][carImmob],VehicleStatus[playerid][i][carInsurances],VehicleStatus[playerid][i][carDestroyed],GetInsurancePrice2(playerid, i));
                }
                else
                {
                    SCMEx(playerid, COLOR_WHITE, "Vehicle %d: %s, Lock[%d], Alarm[%d], Immobiliser[%d], Insurances[%d], Times Destroyed[%d], Next Insurance Price[$%d]", i, VehicleNames[VehicleStatus[playerid][i][carModel]-400],  VehicleStatus[playerid][i][carLock],VehicleStatus[playerid][i][carAlarm],VehicleStatus[playerid][i][carImmob],VehicleStatus[playerid][i][carInsurances],VehicleStatus[playerid][i][carDestroyed],GetInsurancePrice2(playerid, i));
                }
            }
        }
        return 1;
    }
To check how cars you have ofcourse, but if I purchase just 1 car, then it all works find, shows etc.

But if I buy 2 cars, then it shows the 1st car and says "Server command was not found" on the line that the next car should been?

Any ideas?
Reply


Messages In This Thread
Server command not found [+REP]. - by HK - 27.05.2014, 12:37
Re : Server command not found [+REP]. - by S4t3K - 27.05.2014, 12:47
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 12:47
Re: Server command not found [+REP]. - by HK - 27.05.2014, 12:52
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 12:55
Re: Server command not found [+REP]. - by HK - 27.05.2014, 12:55
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 13:00
Re: Server command not found [+REP]. - by HK - 27.05.2014, 13:20
Re: Server command not found [+REP]. - by Konstantinos - 27.05.2014, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)