01.06.2014, 03:31
Personally, I would just use a float value for the radio frequency.
Then at the top of your script, or in your enum:
pawn Код:
stock SetPlayerFrequentie(playerid)
{
new str[20];
Frequency[playerid] = (random(1000) / 100);
format(str, sizeof(str), "Frequency: %0.2f", Frequency[playerid]);
SendClientMessage(playerid, COLOR_WHITE, str);
return 1;
}
pawn Код:
//New var
new Float:Frequency[MAX_PLAYERS];
//Enum
Float:Frequency[MAX_PLAYERS];