Vehicles Not Load this my problems :D
#7

Quote:
Originally Posted by TheSnaKe
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid

    if(
fexist(FolderVehicles.txt(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.txt(playerid))) 
    { 
        
vInfo[playerid][vehicle] = 0
    } 
    return 
true

If it doesn't works, are you sure that you have the "FolderVehicles" in your scriptfiles?
PHP код:
scriptfiles\Vehicles 
and there in the folder my text with my name and in it the vehicles id and pos
and i try u code there in it error
guys still not fixed the problems please help me to load :/
its working only with saving but load now
see my saving its fine
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    if(
vInfo[playerid][vehicle] != 0)
    {
        new 
Float:pos[3];
        
GetVehiclePos(vInfo[playerid][vehicle], pos[0], pos[1], pos[2]);
        
PutPlayerInVehicle(playeridvInfo[playerid][vehicle], 0);
        new 
INI:File INI_Open(FolderVehicles(playerid));
        
INI_SetTag(File"Info vehicle");
        
INI_WriteInt(File"model"vInfo[playerid][model]);
        
INI_WriteInt(File"world"GetVehicleVirtualWorld(vInfo[playerid][vehicle]));
        
INI_WriteInt(File"interior"GetPlayerInterior(playerid));
        
INI_WriteFloat(File"pos:x"pos[0]);
        
INI_WriteFloat(File"pos:y"pos[1]);
        
INI_WriteFloat(File"pos:z"pos[2]);
        
INI_Close(File);
        
//..
        
DestroyVehicle(vInfo[playerid][vehicle]);
    }
    return 
true;

what the problems why i cant load from frist code :/
Reply


Messages In This Thread
Vehicles Not Load this my problems :D - by sas10 - 07.03.2015, 17:36
Respuesta: Vehicles Not Load this my problems :D - by JuanStone - 07.03.2015, 17:43
Re: Respuesta: Vehicles Not Load this my problems :D - by sas10 - 07.03.2015, 18:25
Re: Vehicles Not Load this my problems :D - by TheSnaKe - 07.03.2015, 18:33
Re: Vehicles Not Load this my problems :D - by sas10 - 07.03.2015, 19:57
Re: Vehicles Not Load this my problems :D - by TheSnaKe - 07.03.2015, 20:03
Re: Vehicles Not Load this my problems :D - by sas10 - 07.03.2015, 20:33
Re: Vehicles Not Load this my problems :D - by sas10 - 07.03.2015, 23:04
Respuesta: Vehicles Not Load this my problems :D - by JuanStone - 08.03.2015, 01:19
Re: Respuesta: Vehicles Not Load this my problems :D - by sas10 - 08.03.2015, 07:41

Forum Jump:


Users browsing this thread: 3 Guest(s)