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=321677)



[AJUDA] Erros - thaw_ps - 27.02.2012

Galera to tendando salvar meus exp mais ta dando esses erros

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153) : warning 215: expression has no effect
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(166) : error 012: invalid function call, not a valid address
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(166) : warning 215: expression has no effect
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(166) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(166) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(166) : fatal error 107: too many error messages on one line
Linha dos erros

OnPlayerConnect
Код:
if(dini_Isset("exp.ini",PlayerName(playerid))) Exp[playerid] = (playerid),dini_Int("exp.ini",PlayerName(playerid)));
OnPlayerDisconnect
Код:
 dini_IntSet("exp.ini",PlayerName(playerid),Exp(playerid));
Ajuda Por favor


Re: [AJUDA] Erros - Biel_Eu - 27.02.2012

Tira o ; do Fim da linha OnPlayerConnect


Re: [AJUDA] Erros - thaw_ps - 27.02.2012

Tirei deu 4 erro

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(153 -- 155) : warning 215: expression has no effect
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(155) : error 001: expected token: ";", but found "return"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(155) : fatal error 107: too many error messages on one line
Esqueci de posta

ongamemodeinit
Код:
if(!fexist("exp.ini")) dini_Create("exp.ini");
Ajuda por favor!


Re: [AJUDA] Erros - Caio_Freeze - 27.02.2012

Tente isso:
pawn Код:
if(!fexist("exp.ini") dini_Create("exp.ini"));



Re: [AJUDA] Erros - thaw_ps - 28.02.2012

Fico com erro nessa linha agora

Код:
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(82) : error 001: expected token: ")", but found "-identifier-"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(82) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(82) : error 029: invalid expression, assumed zero
C:\Documents and Settings\thaw\Desktop\0.3d\gamemodes\GW.pwn(82) : fatal error 107: too many error messages on one line
Ajuda por favor


Re: [AJUDA] Erros - Troll Face - 28.02.2012

Posta linhas do Erros


Re: [AJUDA] Erros - Lucas_Alemao - 28.02.2012

posta a linha, 2 linhas acima e 2 linhas abaixo


Re: [AJUDA] Erros - thaw_ps - 28.02.2012

As linhas que tao dando erro sгo aquelas que eu postei ali em cima

sгo na OnPlayerConnect
OnPlayerDisconnect
OnGamemodeinit


Re: [AJUDA] Erros - Troll Face - 28.02.2012

Tenta isso ae :
pawn Код:
dini_IntSet("exp.ini",PlayerName(playerid),Exp(playerid);
ou
dini_IntSet("exp.ini",PlayerName(playerid),Exp(playerid))



Re: [AJUDA] Erros - thaw_ps - 28.02.2012

Nгo deu, deixa assim mesmo.

Vlw pela ajuda de todos
Obrigado