Small Problem [HELP]
#1

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!
Reply
#2

Show us all those lines!
Reply
#3

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

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.
Reply
#5

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.
Reply
#6

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.
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)