[Ajuda] Erro
#1

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

PHP код:
        new Nome[MAX_PLAYER_NAME];
        
giveplayerid ReturnUser(tmp);
        
GetPlayerName(giveplayeridNomesizeof(Nome));
        new 
location[MAX_ZONE_NAME];
        
GetPlayer2DZone(giveplayeridlocationMAX_ZONE_NAME);
        
format(stringsizeof(string), "%s foi visto perto de %s"Nome,location);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        return 
1;
    } 
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

PHP код:
{
    new 
Float:x1,Float:y1,Float:z1GetPlayerPos(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(playeridmodelidFloat:xxFloat:yyFloat:zzradiusspeed)

Agradeзo desde jб.
Reply
#2

Quote:
Originally Posted by Pablo_Seven
Посмотреть сообщение
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

PHP код:
        new Nome[MAX_PLAYER_NAME];
        
giveplayerid ReturnUser(tmp);
        
GetPlayerName(giveplayeridNomesizeof(Nome));
        new 
location[MAX_ZONE_NAME];
        
GetPlayer2DZone(giveplayeridlocationMAX_ZONE_NAME);
        
format(stringsizeof(string), "%s foi visto perto de %s"Nome,location);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        return 
1;
    } 
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

PHP код:
{
    new 
Float:x1,Float:y1,Float:z1GetPlayerPos(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(playeridmodelidFloat:xxFloat:yyFloat:zzradiusspeed)

Agradeзo desde jб.
....
Reply
#3

poste sua linha 62364
Reply
#4

stock AddFlitsPaal(playerid, modelid, Floatx, Float:yy, Float:zz, radius, speed) {


para

PHP код:

stock AddFlitsPaal
(playeridmodelidFloat:xx_hFloat:yy_hFloat:zz_hradiusspeed)  {
     
#define xx xx_h
     #define yy xx_h
     #define zz xx_h 
devia ter postado o cуdigo inteiro, mas isto deve funcionar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)