SA-MP Forums Archive
Small Problem [HELP] - 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)
+--- Thread: Small Problem [HELP] (/showthread.php?tid=364701)



Small Problem [HELP] - Sting. - 31.07.2012

Well I have this problem dealing with this: https://sampforum.blast.hk/showthread.php?tid=349962

Код:
C:\Program Files\GtaSan\Rockstar Games\GTA San Andreas\Server 0.3e\gamemodes\*****.pwn(380) : error 017: undefined symbol "AdminGate"
C:\Program Files\GtaSan\Rockstar Games\GTA San Andreas\Server 0.3e\gamemodes\*****.pwn(1505) : error 017: undefined symbol "AdminGate"
C:\Program Files\GtaSan\Rockstar Games\GTA San Andreas\Server 0.3e\gamemodes\******.pwn(1511) : error 017: undefined symbol "AdminGate"
C:\Program Files\GtaSan\Rockstar Games\GTA San Andreas\Server 0.3e\gamemodes\*****.pwn(2046) : warning 203: symbol is never used: "Admingate"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
How do I fix this problem?! I added new AdminGate at the top of my gamemode. I ran it, and this problem showed up!


Re: Small Problem [HELP] - Ballu Miaa - 31.07.2012

Show us all those lines!


Re: Small Problem [HELP] - Skaizo - 31.07.2012

that,
CreateObject
try replace with
AdminGate = CreateObject(.....); all


Re: Small Problem [HELP] - Sting. - 31.07.2012

This is on top of my script.
Код:
new Admingate;
This is in my Public OnGamemodeInit()
Код:
AdminGate = CreateObject(980, 1342.75, -3439.04, 6.31,   0.00, 0.00, 0.00);//closed
This is the command to move the gate.
Код:
if (strcmp("/opengate", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
        {
        MoveObject(AdminGate, 1354.28, -3439.05, 6.31, 2);
        }
    }
This is the close command for the gate.
Код:
if (strcmp("/closegate", cmdtext, true, 10) == 0)
    {
         if(IsPlayerInRangeOfPoint(playerid, 20, 1354.28, -3439.05, 6.31))
         {
         MoveObject(AdminGate, 1342.75, -3439.04, 6.31, 2);
         }
    }
That's all.


Re: Small Problem [HELP] - Sting. - 31.07.2012

Thanks. I completed it. There was a problem with the strcmp. Here is the wrong one. He's one:

Код:
if (strcmp("/exit", cmdtext, true, 10) == 0)
Now see my own. I corrected it.

Код:
if(strcmp(cmdtext, "/exit", true))
Thanks for the other guys that helped me.


Re: Small Problem [HELP] - TaLhA XIV - 31.07.2012

PHP код:
new AdminGate
PHP код:
AdminGate CreateObject(9801342.75, -3439.046.31,   0.000.000.00);//closed 
PHP код:
if (strcmp("/opengate"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid201354.28, -3439.056.31))
        {
        
MoveObject(AdminGate1354.28, -3439.056.312);
        }
    } 
PHP код:
if (strcmp("/closegate"cmdtexttrue10) == 0)
    {
         if(
IsPlayerInRangeOfPoint(playerid201354.28, -3439.056.31))
         {
         
MoveObject(AdminGate1342.75, -3439.046.312);
         }
    } 
Try these you have just a small problem.


Re: Small Problem [HELP] - Sting. - 01.08.2012

Lol, I just solved it myself. But thanks for the help!