Setcash
#1

When I Compile my admin fs i got these errors:
Код:
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.
These Errors Come From This Command:
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;
}
Reply


Messages In This Thread
Setcash - by misho1 - 04.03.2012, 18:32
Re: Setcash - by Ballu Miaa - 04.03.2012, 18:35
Re: Setcash - by Konstantinos - 04.03.2012, 18:36
Re: Setcash - by FalconX - 04.03.2012, 18:38
Re: Setcash - by misho1 - 04.03.2012, 19:11
Re: Setcash - by FalconX - 04.03.2012, 19:59
Re: Setcash - by misho1 - 04.03.2012, 20:26
Re: Setcash - by misho1 - 05.03.2012, 20:28
Re: Setcash - by Chrillzen - 05.03.2012, 20:57
Re: Setcash - by MadeMan - 08.03.2012, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)