14.02.2012, 15:40
Hi!
I get a problem when I compile... :
I have this under game mode int:
.
And this under OnPlayerCommandText:
I get a problem when I compile... :
Код:
C:\Users\Davve\Desktop\Bases\Base1\NY.pwn(288) : error 017: undefined symbol "Gate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
new Gate;
Gate = CreateObject(980,-967.79998779,2715.10009766,52.29999924,0.00000000,0.00000000,277.50000000); //object(airportgate) (1) //closed gate
And this under OnPlayerCommandText:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/open", cmdtext, true, 10) == 0)
{
CreateObject(980,-967.79998779,2715.10009766,52.29999924,0.00000000,0.00000000,277.50000000); //object(airportgate) (1)
return 1;
} MoveObject(Gate,-967.79998779,2715.10009766,52.29999924,0.00000000,0.00000000,277.50000000);
return 0;
}