#1

so i want this road move but i don't know why i get these 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;
}
errors
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.
Reply


Messages In This Thread
road - by viosteaua98 - 24.11.2011, 14:38
Re: road - by SmiT - 24.11.2011, 14:40
Re: road - by viosteaua98 - 24.11.2011, 14:41
Re: road - by Babul - 24.11.2011, 14:45
Re: road - by SmiT - 24.11.2011, 14:46
Re: road - by viosteaua98 - 24.11.2011, 14:48
Re: road - by Kostas' - 24.11.2011, 14:51
Re: road - by viosteaua98 - 24.11.2011, 15:31
Re: road - by dowster - 24.11.2011, 15:37
Re: road - by viosteaua98 - 24.11.2011, 15:45

Forum Jump:


Users browsing this thread: 4 Guest(s)