[Ajuda] oq significa esses erros
#1

Pode me fala ?

Codigo (textdraws)

Код:
//velocimetro
	Vel[playerid] = true;
	Velocimetro[playerid] = TextDrawCreate(290.000000,430.000000, " ");
	TextDrawBackgroundColor(Velocimetro[playerid], 255);
	TextDrawFont(Velocimetro[playerid], 1);
	TextDrawLetterSize(Velocimetro[playerid], 0.500000, 1.500000);
	TextDrawColor(Velocimetro[playerid], -1);
	TextDrawSetOutline(Velocimetro[playerid], 0);
	TextDrawSetProportional(Velocimetro[playerid], 1);
	TextDrawSetShadow(Velocimetro[playerid], 1);
Код:
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5906) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5907) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5908) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5909) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5910) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5911) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5912) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5913) : error 017: undefined symbol "playerid"
C:\Users\Vinny3D\Desktop\samp03z_svr_R4_win32\samp03z_svr_R4_win32\gamemodes\CBD.pwn(5914) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#2

Tem certeza que vocк estб criando essas TextDraws em OnPlayerConnect(playerid)?
Se caso vocк estiver criando em OnGameModeInit() ou OnFilterScriptInit(), darб esses erros.
Reply
#3

PHP код:
new Velocimetro[MAX_PLAYERS]; 
Reply
#4

Esse erro quer dizer "sнmbolo indefinido" Porque isso ocorreu? porque vocк fez um comando sem houver a variavel como o amigo a cima fez pra vocк.

No topo da GM

Код:
new Velocimetro[MAX_PLAYERS];
Reply
#5

A variбvel existe. Apenas o parвmetro que nгo.

Como foi citado acima, esse erro й causado devido a um simbolo(seja parвmetro ou variбvel) nгo definido. Vocк colocou em uma callback que nгo trata o parвmetro playerid, como citado na primeira reply.

Abraзos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)