SA-MP Forums Archive
[Ajuda] Erros - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erros (/showthread.php?tid=577089)



Erros - CZ - 08.06.2015

Galera eu passei o Fs de Race pro meu Gm e agora ta dando esses erros sera que vcs podem me ajudar?

pawn Код:
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(63) : warning 201: redefinition of constant/macro (symbol "MAX_CHECKPOINTS")
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2337) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2341) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2341) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2343) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2344) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2353) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2361) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2366) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2366) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2367) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2368) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2368) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2370) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2375) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(2385) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\ret.pwn(10178) : error 021: symbol already defined: "isNumeric"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


16 Errors.



Re: Erros - LockedLucas - 08.06.2015

Poste o cуdigo, no lugar de playerid pode ta usando sу i vк isso.

Se tiver
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
ou

pawn Код:
foreach(Player, i)
Vк isso ai, caso tenha isso e sу tirar ou trocar playerid por i


Re: Erros - CharCoast - 08.06.2015

Poste o cуdigo


Re: Erros - CZ - 08.06.2015

Estou Usando o

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
pawn Код:
if(ConstruindoCorrida == playerid+1)
Essa linha aqui /\ como devo colocar? assim ?

pawn Код:
if(ConstruindoCorrida == i++)
?


Re: Erros - LockedLucas - 08.06.2015

if(ConstruindoCorrida == i)


Re: Erros - CZ - 09.06.2015

pawn Код:
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(63) : warning 201: redefinition of constant/macro (symbol "MAX_CHECKPOINTS")
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(1774) : error 017: undefined symbol "i"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(1947) : error 017: undefined symbol "i"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2338) : error 017: undefined symbol "i"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2342) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2342) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2344) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2345) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2354) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2362) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2367) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2367) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2368) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2369) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2369) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2371) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2376) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(2386) : error 017: undefined symbol "playerid"
C:\Users\Carlos\Desktop\MEU GM\gamemodes\NovoGM.pwn(10179) : error 021: symbol already defined: "isNumeric"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase



Re: Erros - ipsLuan - 09.06.2015

Vocк deve estб colocando um parвmetro inexistente numa callback.

PHP код:
function callback(playerid) {
    
printf("[%d]"playerid);
    return 
1;
}

function 
callback() {
    
printf("[%d]"playerid);
    return 
1;


No segundo exemplo, irб dб o erro.