Jump to content
  • 0

Warning O_O


Samy Romafia

Question

function Camera(playerid, Float:X, Float:Y, Float:Z, Float:A, Mul)//3531
{
	SetPlayerCameraLookAt(playerid, X, Y, Z);
	SetPlayerCameraPos(playerid, X + (Mul * floatsin(-A, degrees)), Y + (Mul * floatcos(-A, degrees)), Z+6);
}
(3531) : warning 219: local variable "X" shadows a variable at a preceding level
(3531) : warning 219: local variable "Y" shadows a variable at a preceding level
(3531) : warning 219: local variable "Z" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.
Chiar nu inteleg cum sa rez<olv. Am pus:
new Float:X, Float:Y, Float:Z, Float:Angle;

Si tot imi da warning

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Asta inseamna ca ai mai definit odata X,Y si Z

fa asa mai bine:

function Camera(playerid, Float:Xxx, Float:Yyy, Float:Zzz, Float:A, Mul)//3531
{
   SetPlayerCameraLookAt(playerid, Xxx, Yyy, Z);
   SetPlayerCameraPos(playerid, Xxx+ (Mul * floatsin(-A, degrees)), Yyy + (Mul * floatcos(-A, degrees)), Zzz+6);
}

Link to comment
Share on other sites

stuntman-=!!" post="47402" timestamp="1291475928"]

Asta inseamna ca ai mai definit odata X,Y si Z

fa asa mai bine:

function Camera(playerid, Float:Xxx, Float:Yyy, Float:Zzz, Float:A, Mul)//3531
{
   SetPlayerCameraLookAt(playerid, Xxx, Yyy, Z);
   SetPlayerCameraPos(playerid, Xxx+ (Mul * floatsin(-A, degrees)), Yyy + (Mul * floatcos(-A, degrees)), Zzz+6);
}

Nu era definit ca am cautat in scrit si nu am mai gasit. Oricum multimesc acuma merge

senzaolo1xv.png

www.dsrclan.forumfree.it

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.