warning help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning help (
/showthread.php?tid=533759)
warning help -
ScripteRNaBEEL - 26.08.2014
Код:
F:\Program Files\test\filterscripts\telecords.pwn(21) : warning 219: local variable "x" shadows a variable at a preceding level
F:\Program Files\test\filterscripts\telecords.pwn(21) : warning 219: local variable "y" shadows a variable at a preceding level
F:\Program Files\test\filterscripts\telecords.pwn(21) : warning 219: local variable "z" shadows a variable at a preceding level
F:\Program Files\test\filterscripts\telecords.pwn(27) : warning 203: symbol is never used: "x"
F:\Program Files\test\filterscripts\telecords.pwn(27) : warning 203: symbol is never used: "y"
F:\Program Files\test\filterscripts\telecords.pwn(27) : warning 203: symbol is never used: "z"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Warnings.
help me
PHP код:
/*
Teleport by coords,mark and gotomark system by §с†¶e®РµРe
Special thanks to ****** for sscanf2
ZeeX-ZCMD
*/
#include <a_samp>
#include <sscanf2>
#include <zcmd>
new Float:x;
new Float:y;
new Float:z;
public OnFilterScriptInit()
{
return 1;
}
CMD:tc(playerid, params[])
{
new x,y,z;
if(sscanf(params, "iii", x, y, z))return SendClientMessage(playerid, 0xFF0000FF, "Usage: /telebycoord [X Pos] [Y Pos] [Z Pos]");
SetPlayerPos(playerid, x, y, z);
return 1;
}
Re: warning help -
Rabea - 26.08.2014
Delete :
New float
;
New float:y;
New float:z;
Re: warning help -
ScripteRNaBEEL - 26.08.2014
cmd is not working
Re: warning help -
Stinged - 26.08.2014
pawn Код:
CMD:tc(playerid, params[])
{
new Float:x, Float:y, Float:z;
if(sscanf(params, "fff", x, y, z))return SendClientMessage(playerid, 0xFF0000FF, "Usage: /telebycoord [X Pos] [Y Pos] [Z Pos]");
SetPlayerPos(playerid, x, y, z);
return 1;
}
Delete the global floats.