16.12.2012, 13:44
Okay, this is my first time "creating" an include so I was getting use to how to do it.
This is inside the .inc file:
If I have the stock as "Freeze" and compile it it says defined..
However, if I change it to FreezePlayer it works. But when I add #include <Freeze> to the server it compiles all good.
But I get this in the console:
EDIT: I looked at bLibary include and it has native Freeze(playerid);
and stock Freeze(playerid); but no errors :/
This is inside the .inc file:
pawn Код:
#include <a_samp>
#include <a_players>
native Freeze(playerid);
stock FreezePlayer(playerid)
{
TogglePlayerControllable(playerid, 0);
}
However, if I change it to FreezePlayer it works. But when I add #include <Freeze> to the server it compiles all good.
pawn Код:
CMD:freeze(playerid, params[])
{
Freeze(playerid);
return 1;
}
pawn Код:
[15:00:13] Script[gamemodes/TDM.amx]: Run time error 19: "File or function is not found"
[15:00:13] Number of vehicle models: 0
and stock Freeze(playerid); but no errors :/