30.06.2014, 18:02
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)
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;
}