Selling a Car
#9

No I meant you may have missed it out when copying and pasting the code from your pawno to the forums haha.
You mean you don't have that last bracket added? The code should work after Shabi's suggestion and if you haven't added that last bracket here it is:

pawn Код:
if(strcmp(cmd, "/sellcar", true) == 0)
{
        //if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You must be in a vehicle to use this command!");

        new ivID = GetPlayerVehicleID(playerid),
            Float:Pos[4];

        GetVehiclePos(ivID, Pos[0], Pos[1], Pos[2]);
        GetVehicleZAngle(ivID, Pos[3]);

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            return SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Usage:{FFFFFF} /sellcar <playerid/PartOfName> <price>");
        }
        giveplayerid = ReturnUser(tmp);
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            return SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Usage:{FFFFFF} /sellcar <playerid/PartOfName> <price>");
        }
        moneys = strvalEx(tmp);
        if(moneys >= 1) {} else return 1;
        if(IsAMAXerCar(ivID)) return SendClientMessage(playerid,-1,"You may not sell MAXer vehicles.");
        if(OwnedVeh(ivID) != 0)
        return 1;
}
Reply


Messages In This Thread
Selling a Car Malfunction - by DJ_Shocker - 23.01.2013, 20:23
Re: Selling a Car - by DJ_Shocker - 23.01.2013, 21:52
Re: Selling a Car - by FUNExtreme - 23.01.2013, 22:19
Re: Selling a Car - by DJ_Shocker - 23.01.2013, 22:36
Re: Selling a Car - by DJ_Shocker - 23.01.2013, 23:05
Re: Selling a Car - by Shabi RoxX - 23.01.2013, 23:56
Re: Selling a Car Malfunction - by AphexCCFC - 24.01.2013, 00:06
Re: Selling a Car Malfunction - by DJ_Shocker - 24.01.2013, 00:08
Re: Selling a Car - by AphexCCFC - 24.01.2013, 00:15
Re: Selling a Car - by DJ_Shocker - 24.01.2013, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)