SA-MP Forums Archive
2 Pawno Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 Pawno Errors (/showthread.php?tid=173489)



2 Pawno Errors - Scenario - 02.09.2010

Okay. I've created these two commands;

pawn Код:
command(refresh, playerid, params[])
{
    #pragma unused params
    if(IsPlayerConnectedEx( playerid ) )
    {
        if(IsPlayerInAnyVehicle( playerid ) )
        {
            ClearAnimations(playerid);
            StopLoopingAnimations( playerid );
            TogglePlayerControllable( playerid, true );
            SetPlayerVirtualWorld(playerid, 0);
            SetPlayerInterior(playerid, 0);
            {
                SendClientMessage(playerid, COLOR_WHITE, "You have been refreshed!");
                return 1;
            }
        }
    }
    return 0;
}

command(stopanim, playerid, params[])
{
    #pragma unused params
    if(IsPlayerConnectedEx(playerid))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            ClearAnimations(playerid);
            StopLoopingAnimations( playerid );
            TogglePlayerControllable( playerid, true );
            {
                SendClientMessage(playerid, COLOR_WHITE, "You have stopped your current animation!");
                return 1;
            }
        }
    }
    return 0;
}
However, Pawno returns these errors.

Код:
C:\Users\Nick Piccoli\Documents\The Ultimate Project\RP Script\gamemodes\Script.pwn(1297) : error 017: undefined symbol "StopLoopingAnimations"
C:\Users\Nick Piccoli\Documents\The Ultimate Project\RP Script\gamemodes\Script.pwn(1318) : error 017: undefined symbol "StopLoopingAnimations"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
What is wrong?


Re: 2 Pawno Errors - LarzI - 02.09.2010

Where do you got that fucntion from?
I just ******d it and couldn't find a single site containing that function (StopLoopingAnimations)

[This forum requires that you wait 120 seconds between posts. Please try again in 30 seconds.] - stfu


Re: 2 Pawno Errors - Scenario - 02.09.2010

Actually my friend told me about that function. I couldn't find it either, but he said they worked...


Re: 2 Pawno Errors - LarzI - 02.09.2010

Well it's not, so next time check before listening to your friend :L
You have to make it yourself, or find an existing, and of course, working one.

[This forum requires that you wait 120 seconds between posts. Please try again in 69 seconds.] Up yours


Re: 2 Pawno Errors - Scenario - 02.09.2010

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Well it's not, so next time check before listening to your friend :L
You have to make it yourself, or find an existing, and of course, working one.

[This forum requires that you wait 120 seconds between posts. Please try again in 69 seconds.] Up yours
Okay, well thanks!