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.
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 код:
AdminGate = CreateObject(980, 1342.75, -3439.04, 6.31, 0.00, 0.00, 0.00);//closed
PHP код:
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);
}
}
PHP код:
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);
}
}
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!