An issue with #define
#1

Recently i found one of my old defines that allowed the script (or via command) to work out a percent age,
but its giving me an error (not sure why).

Error: C:\Users\----\Documents\-----\----\---\script.pwn(1525) : warning 236: unknown parameter in substitution (incorrect #define pattern)


pawn Код:
COMMAND:percentage(playerid, params[], amount, percentage)
{
    if(IsPlayerConnected(playerid))
    {
        if(HasCharacterSpawned[playerid])
        {  
            if(AccountInfo[playerid][AccountStaffRank] > 0)
            {
                new tmpstr[1000];
                new value;
                value = WorkOutPercentage(amount, percentage);

            }
        } else CreateErrorMessage(playerid, "You must be spawned as one of your characters to use this command.");
    }
    return true;
}
Reply


Messages In This Thread
An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:02
Re: An issue with #define - by kamiliuxliuxliux - 30.06.2014, 18:04
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:06
Re: An issue with #define - by Dziugsas - 30.06.2014, 18:08
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:10
Re: An issue with #define - by Dziugsas - 30.06.2014, 18:11
Re: An issue with #define - by Konstantinos - 30.06.2014, 18:18
Re: An issue with #define - by zT KiNgKoNg - 30.06.2014, 18:20

Forum Jump:


Users browsing this thread: 3 Guest(s)