04.03.2012, 18:32
When I Compile my admin fs i got these errors:
These Errors Come From This Command:
Код:
E:\Freeroam World\filterscripts\admin.pwn(650) : error 017: undefined symbol "IsNumeric" E:\Freeroam World\filterscripts\admin.pwn(650) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
dcmd_setcash(playerid,params[])
{
new Index;
new tmp[256]; tmp = strtok(params,Index);
new tmp2[256]; tmp2 = strtok(params,Index);
new id,n[MAX_PLAYER_NAME];
new Money = strval(tmp2);
new str[50];
if(!strlen(tmp) || !strlen(tmp2) || !IsNumeric(tmp2));
if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid,ORANGE,"You need to be level 3 to use this command!");
if(!strlen(params)) return SendClientMessage(playerid,GREY,"USAGE: /Setcash <ID> <Amount> ");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,GREY,"Invalid ID");
ResetPlayerMoney(id);
GivePlayerMoney(id, Money);
format(str,sizeof(str),"Admin: %s has set your cash to $%d",n, Money);
SendClientMessage(id,GREEN,str);
return 1;
}