Vehicles Not Load this my problems :D
#1

Hello Guys
My Problems My Vehicles Not Load idk why
please help +rep
Thanks
PHP код:
public OnPlayerConnect(playerid)
{
    if(
fexist(FolderVehicles(playerid)))
    {
        
inline loadvehicle(string:name[], string:value[])
        {
            
INI_Int("model"vInfo[playerid][model]);
            
INI_Int("world"vInfo[playerid][world]);
            
INI_Int("interior"vInfo[playerid][interior]);
            
INI_Float("pos:x"vInfo[playerid][x_]);
            
INI_Float("pos:y"vInfo[playerid][y_]);
            
INI_Float("pos:z"vInfo[playerid][z_]);
        }
        
INI_ParseFile(FolderVehicles(playerid), "loadvehicle");
        
vInfo[playerid][vehicle] = 1;
    }
    else if(!
fexist(FolderVehicles(playerid)))
    {
        
vInfo[playerid][vehicle] = 0;
    }
    return 
true;

PHP код:
public OnPlayerRequestSpawn(playerid)
{
    if(
vInfo[playerid][vehicle] != 0)
    {
        
vInfo[playerid][vehicle] = CreateVehicle(vInfo[playerid][model], vInfo[playerid][x_], vInfo[playerid][y_], vInfo[playerid][z_], 3random(126), random(126), (60*60));
        
SetVehicleVirtualWorld(vInfo[playerid][vehicle], vInfo[playerid][world]);
        
LinkVehicleToInterior(vInfo[playerid][vehicle], vInfo[playerid][interior]);
    }
    return 
true;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)