SA-MP Forums Archive
[Ajuda] O /janelas nгo estб 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] O /janelas nгo estб funcionando corretamente. (/showthread.php?tid=599551)



O /janelas nгo estб funcionando corretamente. - GabrielLost - 27.01.2016

Eu estou mexendo em um GameMode e ele jб continha o /janelas, sу que hб um problema, o player executa o /janelas, aparece que ele abriu as janelas os vidros do veнculo continuam fechado, vou estar enviando o cуdigo aqui do comando.

PHP код:
CMD:janelas(playeridparams[])
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    if (!
IsWindowedVehicle(vehicleid))
        return 
SendErrorMessage(playerid"Vocк nгo estб em um veнculo com janelas.");
    switch (
CoreVehicles[vehicleid][vehWindowsDown])
    {
        case 
false:
        {
            
CoreVehicles[vehicleid][vehWindowsDown] = true;
            
ShowPlayerFooter(playerid"Voce ~g~abriu~w~ as janelas!");
            
SendNearbyMessage(playerid30.0COLOR_PURPLE"%s pressiona o botгo e abaixa as janelas do veнculo."ReturnName(playerid0));
        }
        case 
true:
        {
            
CoreVehicles[vehicleid][vehWindowsDown] = false;
            
ShowPlayerFooter(playerid"Voce ~r~fechou~w~ as janelas!");
            
SendNearbyMessage(playerid30.0COLOR_PURPLE"%s pressiona o botгo e fecha as janelas do veнculo."ReturnName(playerid0));
        }
    }
    return 
1;




Re: O /janelas nгo estб funcionando corretamente. - JPedro - 27.01.2016

https://sampwiki.blast.hk/wiki/GetVehicleParamsCarWindows
https://sampwiki.blast.hk/wiki/SetVehicleParamsCarWindows


Re: O /janelas nгo estб funcionando corretamente. - F1N4L - 27.01.2016

Esta funзгo foi adicionada no SA:MP 0.3.7 entгo cuide a versгo q vc utiliza, pois pode ser isso.