24.09.2011, 12:43
Код:
C:\Dokumente und Einstellungen\Ab\Desktop\Ver3\gamemodes\Gamemode.pwn(6089) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\Ab\Desktop\Ver3\gamemodes\Gamemode.pwn(6089) : warning 219: local variable "x" shadows a variable at a preceding level
new Float:x
stock Float:GetPosInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance) { new Float:a; GetPlayerPos(playerid, x, y, a); switch(IsPlayerInAnyVehicle(playerid)) { case 0: GetPlayerFacingAngle(playerid, a); case 1: GetVehicleZAngle(GetPlayerVehicleID(playerid), a); } x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); return a; }