02.09.2010, 18:55
Okay. I've created these two commands;
However, Pawno returns these errors.
What is wrong?
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;
}
Код:
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.