18.08.2017, 06:44
I'm going to post this anyway because I spent some time making and testing it which I'm no good at.


PHP код:
new bool:foundFloat = false;
new str[128], index[128];
if(!IsNumeric(params))
return SendClientMessage(playerid, -1, "Your input does not have any numbers.");
for(new i = 0, j = 0; i < strlen(params); i++)
{
index[j] = i;
j++;
}
for(new i = 0; i < sizeof(index); i++)
{
if(params[index[i] + 1] == '.')
{
foundFloat = true;
}
}
if(foundFloat)
{
SendClientMessage(playerid, -1, "A possible float was found, the results:");
format(str, sizeof(str), "%s", params);
SendClientMessage(playerid, -1, str);
}
else
{
SendClientMessage(playerid, -1, "A possible float was not found, the results:");
format(str, sizeof(str), "%s", params);
SendClientMessage(playerid, -1, str);
}