28.01.2018, 10:59
Hey,
Why do I get these warnings?
Code:
Why do I get these warnings?
Код:
warning 219: local variable "interior" shadows a variable at a preceding level warning 219: local variable "interior" shadows a variable at a preceding level warning 203: symbol is never used: "interior"
Код:
forward UnjailPlayer(playerid,Float:x,Float:y,Float:z,Float:a,interior); public UnjailPlayer(playerid,Float:x,Float:y,Float:z,Float:a,interior) { if(!playerDB[playerid][ikalintas]) return; SetPlayerPos(playerid,x,y,z); SetPlayerFacingAngle(playerid,a); SetPlayerInterior(playerid,interior); TogglePlayerControllable(playerid,true); SetPlayerWantedLevel(playerid,0); playerDB[playerid][ikalintas]=false; playerDB[playerid][kalejimo_laikas]=0; } stock JailPlayer(playerid,Float:x,Float:y,Float:z,Float:a,time,interior,Float:unX,Float:unY,Float:unZ,Float:unA,unInterior,bool:controlable) { SetTimerEx("UnjailPlayer",time,0,"iffffi",playerid,unX,unY,unZ,unA,unInterior); SetPlayerInterior(playerid,interior); SetPlayerPos(playerid,x,y,z); SetPlayerFacingAngle(playerid,a); TogglePlayerControllable(playerid,controlable); SetPlayerWantedLevel(playerid,0); playerDB[playerid][ikalintas]=true; }