SA-MP Forums Archive
[Ajuda] Erro ao compilar (invalid expression, assumed zero) - 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] Erro ao compilar (invalid expression, assumed zero) (/showthread.php?tid=652877)



Erro ao compilar (invalid expression, assumed zero) - iWiNeR - 21.04.2018

Boa noite, estou a 30 minutos tentando achar onde estб o erro dessa linha

pawn Код:
format(Player[playerid][pFac], sizeof(Player[playerid][pFac]), "%s", DOF2_GetString(Conta, "Faction"));



Re: Erro ao compilar (invalid expression, assumed zero) - [BOPE]Seu._.Madruga - 21.04.2018

coloca na enum

pFac[50]


Re: Erro ao compilar (invalid expression, assumed zero) - iWiNeR - 21.04.2018

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
coloca na enum

pFac[50]
Jб tentei, porйm permanece o erro


Re: Erro ao compilar (invalid expression, assumed zero) - RodrigoMSR - 21.04.2018

Coloque manualmente o tamanho de pFac (invйs de sizeof).
PHP код:
format(Player[playerid][pFac], 50"%s"DOF2_GetString(Conta"Faction")); 



Re: Erro ao compilar (invalid expression, assumed zero) - iWiNeR - 21.04.2018

Quote:
Originally Posted by RodrigoMSR
Посмотреть сообщение
Coloque manualmente o tamanho de pFac (invйs de sizeof).
PHP код:
format(Player[playerid][pFac], 50"%s"DOF2_GetString(Conta"Faction")); 
Foi, mt obg <3