Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Plates don't get printed in correctly.

$
0
0
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 Code:

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;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>