[Ajuda] Warning
#1

como tiro essa warning

pawn Код:
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1267) : warning 219: local variable "Nome" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Linha
pawn Код:
new bibi[128], Nome[MAX_PLAYERS];
Reply
#2

pawn Код:
new bibi[128];
A variбvel "Nome" jб foi criada.
Reply
#3

agora deu esse erros
pawn Код:
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1269) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1269) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1270) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#4

Sу da esses erros quando й retirado a
PHP код:
new Nome[MAX_PLAYERS]; 
?
Reply
#5

Quote:
Originally Posted by histire
Посмотреть сообщение
Sу da esses erros quando й retirado a
PHP код:
new Nome[MAX_PLAYERS]; 
?
sim!
Reply
#6

Posta as linhas.
Reply
#7

pawn Код:
GetPlayerName(playerid, Nome, sizeof(Nome));
 format(bibi, sizeof(bibi), "[Anti-SpamCar]: %s foi banido Por Cometer Spam Car.", Nome);
Reply
#8

pawn Код:
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(bibi, sizeof bibi ,"[Anti-SpamCar]: %s foi banido Por Cometer Spam Car.", Nome);
Reply
#9

deu esses aki

pawn Код:
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1269) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Fernando\Desktop\BPLV2.pwn(1270) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply
#10

Acabei de colocar isso e funcionou .
pawn Код:
new bibi[74],Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(bibi, sizeof bibi ,"[Anti-SpamCar]: %s foi banido Por Cometer Spam Car.", Nome);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)