08.02.2013, 20:16
C:\Users\Fiore\Desktop\NIKOlikeAboss\pawno\include \dutils.inc(383) : warning 219: local variable "result" shadows a variable at a preceding level
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7481) : warning 219: local variable "result" shadows a variable at a preceding level
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7491) : error 025: function heading differs from prototype
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7791) : warning 219: local variable "result" shadows a variable at a preceding level
1) What's wrong with dutils.inc? LOL
2) Can you please help me to fix those errors/warning?
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7481) : warning 219: local variable "result" shadows a variable at a preceding level
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7491) : error 025: function heading differs from prototype
C:\Users\Fiore\Desktop\NIKOlikeAboss\gamemodes\woo tisidiot.pwn(7791) : warning 219: local variable "result" shadows a variable at a preceding level
1) What's wrong with dutils.inc? LOL
2) Can you please help me to fix those errors/warning?
pawn Код:
stock strrest(const string[], index)
{
new length = strlen(string);
new offset = index;
new result[256]; // 7481
while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && (string[index] > '\r'))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
pawn Код:
stock IsNumeric(const string[]) // 7491
{
if(strlen(string) > 15) return 0;
for (new i = 0, j = strlen(string); i < j; i++)
{
if (string[i] > '9' || string[i] < '0') return 0;
}
return 1;
}
pawn Код:
mystrtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[32]; // 7791
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}