Jump to content
  • 0

pomoc Warningy


mnagy112

Dotaz

Ahojte,

neviem si s tym rady tak prato sa chcem spytat vas ci by ste mi mohli pomoct :)

 

Warningy:

 

(92) : warning 219: local variable "x" shadows a variable at a preceding level
(92) : warning 219: local variable "y" shadows a variable at a preceding level
(92) : warning 219: local variable "z" shadows a variable at a preceding level
(480) : warning 219: local variable "x" shadows a variable at a preceding level
(480) : warning 219: local variable "y" shadows a variable at a preceding level
(480) : warning 219: local variable "z" shadows a variable at a preceding level
(484) : warning 213: tag mismatch
(484 -- 485) : warning 213: tag mismatch
(484 -- 485) : warning 213: tag mismatch
(489) : warning 219: local variable "x" shadows a variable at a preceding level
(489) : warning 219: local variable "y" shadows a variable at a preceding level
(489) : warning 219: local variable "z" shadows a variable at a preceding level
(491) : warning 213: tag mismatch
(491) : warning 213: tag mismatch
(491) : warning 213: tag mismatch

 

A riadky:

 

92 ==> stock WarpPlayer(playerid, Float:x, Float:y, Float:z, interier, Float:uhel)
{
  SetPlayerPos(playerid, x, y, z);
  SetPlayerInterior(playerid, interier);
  if(uhel > 359 || uhel < 0) uhel = 0;
  SetPlayerFacingAngle(playerid, uhel);
  SetCameraBehindPlayer(playerid);
}

480 ==> public GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z)
{
new Float:x1,Float:y1,Float:z12,Float:tmpdis;
GetPlayerPos(playerid,x1,y1,z12);
tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)
+floatpower(floatabs(floatsub(y,y1)),2)+floatpower(floatabs(floatsub(z,z12)),2));
return floatround(tmpdis);
}

public IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
{
491 ==> if(GetPlayerDistanceToPointEx(playerid,x,y,z) < radius){
return 1;
}
return 0;
}

 

Doteraz to fungovalo normalne...ale po tom co som tam dal QWER-ov object streamer to zacalo hadzat toto...

 

Dakujem vsetkym za pomoc a prosim :spam: :)

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
Zdravim,

 

Jak mas

 SetPlayerPos(playerid, x, y, z);

 

tak X,Y,Z jsou souradky, to smaz a napis tam cisla ktere chces

 

To je stock...tie suradky sa tam pisu az pri pouzivani... toto je definicia

Link to comment
Share on other sites

  • 0
Zdravim,

 

Jak mas

 SetPlayerPos(playerid, x, y, z);

 

tak X,Y,Z jsou souradky, to smaz a napis tam cisla ktere chces

 

To je stock...tie suradky sa tam pisu az pri pouzivani... toto je definicia

 

 

A jo, sorry ja to necetl cely :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...