26.08.2012, 04:31
The Error Is
The Code Is
Quote:
Project Infinity GamerX\Project Infinity GamerX [UAS]\gamemodes\Angels.pwn(7517) : warning 208: function with tag result used before definition, forcing reparse |
Quote:
stock Float:GetPosInFrontOfPlayer(playerid, &Float, &Float:y, Float:distance) { new Float:a; GetPlayerPos(playerid, x, y, a); if (IsPlayerInAnyVehicle(playerid)) GetVehicleZAngle(GetPlayerVehicleID(playerid), a); else GetPlayerFacingAngle(playerid, a); x += (distance * floatsin(-a, degrees)); y += (distance * floatcos(-a, degrees)); return a; } |