09.05.2015, 17:51
Error
The line of error
This is my 2nd IsNumeric but idk how to put both on 1 Stock
+Rep who help me
NVM ~FIXED ~ by myself
pawn Код:
C:\Users\CraTzy\Desktop\LVDM\gamemodes\LVDM.pwn(6262) : error 021: symbol already defined: "IsNumeric"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
stock IsNumeric(const string[])
{
new length = strlen(string);
if(!length) return false;
for(new i = 0; i < length; i++)
{
if(string[i] > '9' || string[i] <'0') return false;
}
return true;
}
pawn Код:
stock IsNumeric(const string[])
{
for(new i=0; string[i]; i++)
{
if(string[i] < '0' || string[i] > '9') return 0;
}
return 1;
}
NVM ~FIXED ~ by myself
pawn Код:
stock IsNumeric(const string[])
{
for(new i=0; string[i]; i++)
{
if(string[i] < '0' || string[i] > '9') return 0;
}
new length = strlen(string);
if(!length) return false;
for(new i = 0; i < length; i++)
{
if(string[i] > '9' || string[i] <'0') return false;
}
return true;
}