[AJUDA]Problema maquinas de refri
#1

Nao sei oq aconteceu so sei que nao da pra beber refrigerante pra poder encher a vida em nenhum lugar como fasso pra ativar?
Reply
#2

duv onde coloco isso
Reply
#3

no todo do seu GM depois das #DEFINE
pawn Код:
static
    Float:zMaquinas[43][3] =
{
    (2480.86,-1959.27,12.9609),
    (1634.11,-2237.53,12.8906),
    (2139.52,-1161.48,23.3594),
    (2153.23,-1016.15,62.2344),
    (-1350.12,493.859,10.5859),
    (-2229.19,286.414,34.7031),
    (1659.46,1722.86,10.2188),
    (2647.7,1129.66,10.2188),
    (2845.73,1295.05,10.7891),
    (1398.84,2222.61,10.4219),
    (-1455.12,2591.66,55.2344),
    (-76.0312,1227.99,19.125),
    (662.43,-552.164,15.7109),
    (-253.742,2599.76,62.2422),
    (2271.73,-76.4609,25.9609),
    (1789.21,-1369.27,15.1641),
    (1729.79,-1943.05,12.9453),
    (2060.12,-1897.64,12.9297),
    (1928.73,-1772.45,12.9453),
    (2325.98,-1645.13,14.2109),
    (2352.18,-1357.16,23.7734),
    (1154.73,-1460.89,15.1562),
    (-1350.12,492.289,10.5859),
    (-2118.97,-423.648,34.7266),
    (-2118.62,-422.414,34.7266),
    (-2097.27,-398.336,34.7266),
    (-2092.09,-490.055,34.7266),
    (-2063.27,-490.055,34.7266),
    (-2005.65,-490.055,34.7266),
    (-2034.46,-490.055,34.7266),
    (-2068.56,-398.336,34.7266),
    (-2039.85,-398.336,34.7266),
    (-2011.14,-398.336,34.7266),
    (-1980.79,142.664,27.0703),
    (2319.99,2532.85,10.2188),
    (1520.15,1055.27,10.00),
    (2503.14,1243.7,10.2188),
    (2085.77,2071.36,10.4531),
    (-862.828,1536.61,21.9844),
    (-14.7031,1175.36,18.9531),
    (-253.742,2597.95,62.2422),
    (201.016,-107.617,0.898438),
    (1277.84,372.516,18.9531)
};
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
de CTRL+F e procure por isso...
se nгo achar nada coloke issu no final do GM

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys == 16 && GetPlayerState(playerid) == 1)
    {
        for(new a; a < sizeof zMaquinas; a++)
        {
            if(IsPlayerInRangeOfPoint(i,3.0,zMaquinas[a][0],zMaquinas[a][1],zMaquinas[a][2]))  
            {
                GivePlayerMoney(playerid,-2);
                new
                    Float:zHealth;
                GetPlayerHealth(playerid,Float:zHealth);
                SetPlayerHealth(playerid,(Float:zHealth + 15.0));
            }
        }
    }
    return 1;
}
Espero ter ajudado
Reply
#4

ta o inicio foi so que na segunda parte ja tem esse onplayerkey ai eu botei dps dele so ke deu um monte de erro e n e no comando
Reply
#5

Eu testei aqui e so deu um erro que era um i , mas era so pra trocar por a...
Reply
#6

ta ai os erros que deu


C:\Documents and Settings\Frederico1\Desktop\MOD GTA\Brasil Play Street 2fake\Brasil Play Street\BMG\pawno\include\servermoneyGM.inc(34) : error 004: function "GMExit" is not implemented
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(820) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(3275) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(3321) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4097) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4117) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4144) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4162) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4609) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4651) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4693) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4735) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4764) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4793) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4822) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4851) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4880) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(492 : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(4957) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(500 : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5041) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5082) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5099) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5116) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5133) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(5150) : error 017: undefined symbol "GetPlayerOrg"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#7

Pode estar faltando algum }
Reply
#8

intao tb axei que erra isso mas n consegui axar onde

olha coloquei o comando assim





public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(newkeys == 16 && GetPlayerState(playerid) == 1)
{
for(new a; a < sizeof zMaquinas; a++)
{
if(IsPlayerInRangeOfPoint(i,3.0,zMaquinas[a][0],zMaquinas[a][1],zMaquinas[a][2]))
{
GivePlayerMoney(playerid,-2);
new
Float:zHealth;
GetPlayerHealth(playerid,Float:zHealth);
SetPlayerHealth(playerid,(Float:zHealth + 15.0));
}
}
}
return 1;
}

new string[128];
PlayerInactivity[playerid] = 0;
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
OnPlayerCommandText(playerid,"/sair");
}
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
OnPlayerCommandText(playerid,"/entrando");
OnPlayerCommandText(playerid,"/saindo");
OnPlayerCommandText(playerid,"/entrar");
OnPlayerCommandText(playerid,"/saidaemegencia");
OnPlayerCommandText(playerid,"/sair");
if(PlayerToPoint(3,playerid,229.7267,165.0443,1003 .0234) && IsACop(playerid))
{
Reply
#9

Se vocк tiver mais codes na sua public de Key coloque assim no inicio da public

pawn Код:
if(newkeys == 16 && GetPlayerState(playerid) == 1)
    {
        for(new a; a < sizeof zMaquinas; a++)
        {
            if(IsPlayerInRangeOfPoint(i,3.0,zMaquinas[a][0],zMaquinas[a][1],zMaquinas[a][2]))  
            {
                GivePlayerMoney(playerid,-2);
                new Float:zHealth;
                GetPlayerHealth(playerid,Float:zHealth);
                SetPlayerHealth(playerid,(Float:zHealth + 15.0));
                return 1;
            }
        }
    }
Espero ter ajudado! Se der algum erro poste-o.
Reply
#10

Aew Vlw manolo o GM coplio mas ficou esses avisos

C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(44206) : warning 217: loose indentation
C:\Documents and Settings\Frederico1\Desktop\Brasil Play Street\BMG\GameModes\BPS.pwn(44587) : warning 209: function "OnPlayerKeyStateChange" should return a value

e tambem continuo sem funcionar e nao esta dando pra encher a vida nas maquinas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)