warning help
#1

Код:
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(playeridparams[])
{
    new 
x,y,z;
    if(
sscanf(params"iii"xyz))return SendClientMessage(playerid0xFF0000FF"Usage: /telebycoord [X Pos] [Y Pos] [Z Pos]");
    
SetPlayerPos(playeridxyz);
    return 
1;

Reply
#2

Delete :
New float;
New float:y;
New float:z;
Reply
#3

cmd is not working
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)