Warning, how to fix ?
#1

Hello, i got one warning and then this is not working,

PHP код:
(6047) : warning 219local variable "string" shadows a variable at a preceding level 
PHP код:
     {
>>        new 
money floatround(SweeperDistance[playerid] * MONEY_PER_METER), string[80];
        
format(stringsizeof(string), "~n~~n~~w~Distance Cleaned: ~b~~h~~h~%d Meters~n~~w~Earned ~g~~h~~h~$%d"SweeperDistance[playerid], money); 
Reply
#2

Hello!

PHP код:
format(stringsizeof(string), "~n~~n~~w~Distance Cleaned: ~b~~h~~h~%d Meters~n~~w~Earned ~g~~h~~h~$%d"SweeperDistance[playerid], money); 
to
PHP код:
format(string2sizeof(string2), "~n~~n~~w~Distance Cleaned: ~b~~h~~h~%d Meters~n~~w~Earned ~g~~h~~h~$%d"SweeperDistance[playerid], money); 
Where you defined this:
PHP код:
new string[..] => new string2[..]; 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)