31.01.2010, 08:18
Hello I've got this warning which i cant fix..
This is the function...
Please help me with this warning!
Код:
C:\Users\******\Desktop\!@#!@!#\pawno\include\ServerFunctions.inc(14) : warning 219: local variable "gravity" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
stock SetPlayerGravity(playerid,Float:gravity) { for (new g = playerid; g <MAX_PLAYERS; g++) { if(IsPlayerConnected(g)) { playerid = SetGravity(Float:gravity); } } }