24.11.2011, 14:38
so i want this road move but i don't know why i get these errors
errors
pawn Код:
public OnGameModeInit()
{
road = CreateObject(4168,2294.30004883,453.39999390,0.80000001,0.00000000,0.00000000,270.00000000); //object(roads23_lan) (1)
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/roadopen", cmdtext, true, 10) == 0)
{
MoveObject(road,2294.30004883,453.39999390,0.80000001,3);
return 1;
}
if (strcmp("/roadclosed", cmdtext, true, 10) == 0)
{
MoveObject(road,2293.60009766,591.79998779,0.80000001,3);
return 1;
}
return 0;
}
pawn Код:
C:\Users\Yayu\Desktop\road.pwn(35) : error 017: undefined symbol "road"
C:\Users\Yayu\Desktop\road.pwn(92) : error 017: undefined symbol "road"
C:\Users\Yayu\Desktop\road.pwn(98) : error 017: undefined symbol "road"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.