18.07.2009, 16:21
I have a /fine cmd for admin but it gives me errors here is the /fine cmd :
And here are the errors :
Does anybody know what I should do?
pawn Код:
new FineMoney[MAX_PLAYERS];
pawn Код:
//-----------------------------------[Fine]-----------------------------------------------
if(strcmp(cmd, "/fine", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 99999 ) { SendClientMessage(playerid, COLOR_GREY, "Fine price can't be below 1 or higher then 99999 !"); return 1; }
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fine [playerid/PartOfName] [price] [reason]");
return 1;
}
format(string, sizeof(string), "* You gave %s a fine costing $%d, reason: %s", giveplayer, moneys, (result));
SendClientMessage(playerid,COLOR_LIGHTRED, string);
format(string, sizeof(string), "* AdmCmd: %s has given you a fine costing $%d, reason: %s", sendername, moneys, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
FineMoney[giveplayerid] = moneys;
SafeGivePlayerMoney(giveplayerid, - moneys);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
return 1;
}
}
return 1;
pawn Код:
.......................\gamemodes\gf.pwn(2225) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2229) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2393) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2397) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2401) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2405) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2409) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2413) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2417) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2421) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2425) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2429) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2441) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2445) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2449) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2453) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2457) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2469) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2473) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2477) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2489) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2493) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2497) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2501) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2505) : error 004: function "PlayerToPoint" is not implemented
.......................\gamemodes\gf.pwn(2509) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Does anybody know what I should do?
![Sad](images/smilies/sad.gif)