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

[Ayuda]: Bug Al Spawnear Un Auto

$
0
0
Hola Chico De Forum Samp, Estoy Haciendo Un GM Desde 0 y Quiero Saber Porque Al Spawnear Un Auto Me Sale Haci
Esta Es La Imagen
http://imgur.com/GAejinL

Este Es Mi Codigo:
PHP Code:

stock CrearVehiculo(playeridmodel)
{
    if(
IsPlayerInAnyVehicle(playerid))
    {
    
SendClientMessage(playeridROJO"Usted Ya Tiene Un Vehiculo Actualmente!.");
    }
     else
    {
    new 
Float:XFloat:YFloat:ZFloat:Angle;
    
GetPlayerPos(playeridXYZ);
    
GetPlayerFacingAngle(playeridAngle);
    if(
Usuario[playerid][Vehiculo] != -1CarDeleter(Usuario[playerid][Vehiculo]);
    new 
vehicleid CreateVehicle(model,X,Y,Z,Angle,VehicleColoursTableRGBA[random(128)],VehicleColoursTableRGBA[random(128)],-1);
    
PutPlayerInVehicle(playeridvehicleid0);
    
SetVehicleVirtualWorld(vehicleidGetPlayerVirtualWorld(playerid));
    
LinkVehicleToInterior(vehicleidGetPlayerInterior(playerid));
    
ChangeVehicleColor(vehicleidVehicleColoursTableRGBA[random(128)],VehicleColoursTableRGBA[random(128)]);
    
Usuario[playerid][Vehiculo] = vehicleid;
    }
    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>