[Ajuda] Oque hб de errado?І
#2

pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
#define MAX_GATES 1
new
    Gate[MAX_GATES],
    bool:Open[MAX_GATES char]
    ;
public OnFilterScriptInit()
{
    Gate[0] = CreateDynamicObject(980,1544.8994140625,-1623.69921875,15.199999809265,0.0,0.0,90);
    return 1;
}

public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    switch(newkeys)//erro aqui, vc n definiu pressed
    {
        case KEY_HANDBRAKE:
        {
            if(IsPlayerInRangeOfPoint(playerid,10,xxx,yyy,zzz))//xxx, yyy e zzz devem ser numeros ou variavis q contenham numeros
            {
                switch(Open{0})
                {
                    case true:
                    {
                        MoveDynamicObject(Gate[0],1545.1999511719,-1633.1999511719,15.199999809265,2.0);
                        Open{0} = false;
                    }
                    case false:
                    {
                        MoveDynamicObject(Gate[0],1545.1999511719,-1633.1999511719,15.199999809265,2.0);
                        Open{0} = true;
                    }
                }
            }
        }
    }//faltava uma }
    return 1;
}
isso deve resolver
Reply


Messages In This Thread
[Ajuda] Oque hб de errado?І - by ceesar90 - 09.10.2011, 17:09
Re: Oque hб de errado?І - by Pharrel - 09.10.2011, 17:26
Re: Oque hб de errado?І - by ceesar90 - 09.10.2011, 17:57
Re: Oque hб de errado?І - by WLSF - 09.10.2011, 18:07
Re: Oque hб de errado?І - by ceesar90 - 09.10.2011, 18:08
Re: Oque hб de errado?І - by DreeH - 09.10.2011, 18:11
Re: Oque hб de errado?І - by WLSF - 09.10.2011, 18:12
Re: Oque hб de errado?І - by ceesar90 - 09.10.2011, 18:12
Re: Oque hб de errado?І - by DreeH - 09.10.2011, 18:15
Re: Oque hб de errado?І - by ceesar90 - 09.10.2011, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)