15.03.2011, 20:09
Hey guys. I was just adding a command to my script and suddenly I got an error in my server. Notice I said "server" and not "script". Here is the error:
All I added was this:
Any idea of how to fix this error?
Code:
Script[gamemodes/rp.amx]: Run time error 19: "File or function is not found"
pawn Code:
CMD:restart(playerid, params[])
{
if(GetAdminLevel(playerid) >=5 || IsPlayerAdmin(playerid))
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
new file[256];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
dini_FloatSet(file, "XPos", x);
dini_FloatSet(file, "YPos", y);
dini_FloatSet(file, "ZPos", z);
dini_IntSet(file, "Interior", GetPlayerInterior(playerid));
}
SendRconCommand("gmx");
}
return 1;
}