20.08.2012, 03:09
pessoal to compilando o gm e ta dando erro me ajudem pf!
C:\Users\Pablo\Documents\GCL.pwn(23366) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\Pablo\Documents\GCL.pwn(62364) : warning 219: local variable "xx" shadows a variable at a preceding level
C:\Users\Pablo\Documents\GCL.pwn(62364) : warning 219: local variable "yy" shadows a variable at a preceding level
C:\Users\Pablo\Documents\GCL.pwn(62364) : warning 219: local variable "zz" shadows a variable at a preceding level
Agradeзo desde jб.
C:\Users\Pablo\Documents\GCL.pwn(23366) : warning 219: local variable "Nome" shadows a variable at a preceding level
PHP код:
new Nome[MAX_PLAYER_NAME];
giveplayerid = ReturnUser(tmp);
GetPlayerName(giveplayerid, Nome, sizeof(Nome));
new location[MAX_ZONE_NAME];
GetPlayer2DZone(giveplayerid, location, MAX_ZONE_NAME);
format(string, sizeof(string), "%s foi visto perto de %s", Nome,location);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
C:\Users\Pablo\Documents\GCL.pwn(62364) : warning 219: local variable "yy" shadows a variable at a preceding level
C:\Users\Pablo\Documents\GCL.pwn(62364) : warning 219: local variable "zz" shadows a variable at a preceding level
PHP код:
{
new Float:x1,Float:y1,Float:z1; GetPlayerPos(playerid,x1,y1,z1);
new Float:tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+
floatpower(floatabs(floatsub(y,y1)),2));
return floatround(tmpdis);
}
stock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{