SA-MP Forums Archive
[Ajuda] /estacionar nгo funcionando corretamente - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] /estacionar nгo funcionando corretamente (/showthread.php?tid=619840)



/estacionar nгo funcionando corretamente - FernandoDutra - 22.10.2016

Pessoal, fiz um sistema bбsico de veнculo com proprietбrios, porйm, o /estacionar nгo estб salvando a posiзгo, gostaria que alguйm me ajuda-se.

PHP код:
CMD:estacionar(playeridparams[])
{
    new 
GetPlayerVehicleID(playerid), FloatXFloatYFloatZFloatA;
    
GetPlayerPos(playeridXYZ), GetPlayerFacingAngle(playeridA);
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridCOLOR_LIGHTRED"Vocк precisa estar dentro de um veнculo para usar este comando.");
    if(
PlayerInfo[playerid][VehicleOwner] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"Vocк precisa ser dono de um veнculo.");
    if(
GetPlayerVehicleID(playerid) == v)
    {
        if(
PlayerInfo[playerid][VehicleOwner] == v)
        {
            
VehicleInfo[v][posX] = X;
            
VehicleInfo[v][posY] = Y;
            
VehicleInfo[v][posZ] = Z;
            
VehicleInfo[v][posA] = A;
            
            new 
file[80];
            
format(filesizeof(file), Vehiclesv);
            if(
DOF2_FileExists(file))
            {
                
DOF2_SetFloat(file"Vehicle Pos X"X);
                
DOF2_SetFloat(file"Vehicle Pos Y"Y);
                
DOF2_SetFloat(file"Vehicle Pos Z"Z);
                
DOF2_SetFloat(file"Vehicle Pos A"A);
                
DOF2_SaveFile();
            }
            
SendClientMessage(playeridCOLOR_WHITE"Vocк estacionou o seu veнculo.");
         }
         else 
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo possui um veнculo.");
    }
    else 
SendClientMessage(playeridCOLOR_LIGHTRED"Esse nгo й seu veнculo.");
    return 
1;




Re: /estacionar nгo funcionando corretamente - FernandoDutra - 23.10.2016

Alguйm para me ajudar?


Re: /estacionar nгo funcionando corretamente - teteu99 - 23.10.2016

Me chame no Skype : live:ylookprogrammer , para eu ta te dando auxilio .