Plates don't get printed in correctly.
#1

Hello.
Sometimes when i use /friskcar, it prints out the plate correctly, but sometimes it does the half of the plate, and then randomly my name behind it.
This is my code:
PHP код:
COMMAND:friskcar(playeridparams[])
{
    new 
car GetPlayerNearestVehicle(playerid);
    if(
GetDistanceFromPlayerToVehicle(playeridcar) > 5.0)
        return 
SendClientError(playerid"There is no vehicle around you!");
    
SendClientMSG(playeridCOLOR_WHITE"[%s]: Plate: (%s) Guns(%d) - Lead(%s/50,000) - Metal(%s/50,000}",GetVehicleName(car),cInfo[car][plate], comps[car][guns], number_format(vehicleLead[car]), number_format(vehicleMetal[car]));
    if(
CarBombActive[car]) SendClientMSG(playeridCOLOR_RED" WARNING: Looks like this vehicle has a fused bomb!");
    for(new 
i=0;i<13;i++)
    {
        if(
VehicleWeapon[car][i]) SendClientMSG(playeridCOLOR_WHITE" Weapon: %s (%d ammo) (Slot: %d)"aWeaponNames[VehicleWeapon[car][i]], VehicleAmmo[car][i], i);
    }
    
format(iStrsizeof(iStr), "is frisking the %s."GetVehicleName(car));
    
Action(playeridiStr);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)