SA-MP Forums Archive
[Ajuda] ERRO AO COMPILAR - 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 (/showthread.php?tid=629562)



ERRO AO COMPILAR - Eiffel - 28.02.2017

O erro й o seguinte
Код HTML:
C:\Users\Pc\Desktop\GM By Eiffel Usando\gamemodes\BPG.pwn(82919) : error 022: must be lvalue (non-constant)
na seguinte linha:

PHP код:
    if(PlayerInfo[playerid][pAdmin] != 1337 && PlayerInfo[playerid][pAdmin] != 3001 && PlayerInfo[playerid][pAdmin] != 5000 && PlayerInfo[playerid][pItemCash1] = 0
como resolver?


Re: ERRO AO COMPILAR - Whoo - 28.02.2017

PHP код:
  if(PlayerInfo[playerid][pAdmin] != 1337 && PlayerInfo[playerid][pAdmin] != 3001 && PlayerInfo[playerid][pAdmin] != 5000 && PlayerInfo[playerid][pItemCash1] == 0)
{





Re: ERRO AO COMPILAR - Don_Speed - 28.02.2017

Comeзa com if( e termina com ; ? Tudo que abre fecha .


Re: ERRO AO COMPILAR - Felipe1241421 - 28.02.2017

Don_Speed o erro dele foi o seguinte ele esqueceu o pItemCash1

tipo

PlayerInfo[playerid][pItemCash1] = 0;

Correto:

PlayerInfo[playerid][pItemCash1] == 0;


Re: ERRO AO COMPILAR - johntrybescripter - 28.02.2017

o que se quer fazer?

mas tenta assim :
pawn Код:
if(PlayerInfo[playerid][pAdmin] != 1337 || PlayerInfo[playerid][pAdmin] != 3001 || PlayerInfo[playerid][pAdmin] != 5000 || PlayerInfo[playerid][pItemCash1] == 0)
/* vc pode abrir {  ou da um return */