SA-MP Forums Archive
A little HELP here?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little HELP here?? (/showthread.php?tid=213190)



A little HELP here?? - xemper - 18.01.2011

pawn Код:
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
        if (PlayerToPoint(15, playerid,2091.93212891,-1603.40270996,15.14696503))
        {
            MoveObject(agate1,2300.526367, 605.177551, 12.659502, 2.00);
            SetTimer("GateClose11", 7000, 0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes his/her remote and opens Admin Palace gate.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
I get this error:
Quote:

C:\Users\Frede\Desktop\GTASA\gamemodes\gtarp.pwn(1 885 : error 017: undefined symbol "agate1"




Re: A little HELP here?? - Jay. - 18.01.2011

Quote:
Originally Posted by xemper
Посмотреть сообщение
pawn Код:
else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
        if (PlayerToPoint(15, playerid,2091.93212891,-1603.40270996,15.14696503))
        {
            MoveObject(agate1,2300.526367, 605.177551, 12.659502, 2.00);
            SetTimer("GateClose11", 7000, 0);
            GetPlayerName(playerid, sendername, sizeof(sendername));
            format(string, sizeof(string), "* %s takes his/her remote and opens Admin Palace gate.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        }
I get this error:
You didn't define agate1.
Top of script
pawn Код:
new agate1;



Re: A little HELP here?? - JaTochNietDan - 18.01.2011

Well what don't you understand about the error, variable "agate1" isn't defined, therefore it means nothing. So you must define it.


Re: A little HELP here?? - BlackWolf120 - 18.01.2011

you have to define your object first.

pawn Код:
new agate1;

agate1 = CreateObject();

MoveObject(agate1,...);