[AJUDA]ERROS.
#1

Quote:

C:\Documents and Settings\qqq\sampi\pawno\gamemodes\CGU123.pwn(50) : error 017: undefined symbol "playerid"
C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(50 ) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

linha:

pawn Код:
new Vip[playerid] = viplv;
Reply
#2

Tente trocar

new Vip[playerid] = viplv;

por

new Vip[MAX_PLAYERS] = viplv;
Reply
#3

Quote:

C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(49 ) : error 017: undefined symbol "viplv"
C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(49 ) : error 008: must be a constant expression; assumed zero
C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(50 5) : error 017: undefined symbol "viplv"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Linha 49:

pawn Код:
new Vip[MAX_PLAYERS] = viplv;
Linha 505:

pawn Код:
if(viplv < 1 || viplv > 3)
Reply
#4

PHP код:
new viplv
Reply
#5

aff esqueci, tks.

ultimo --'

Quote:

C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(50 ) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

linha 50:

pawn Код:
new Vip[MAX_PLAYERS] = viplv;
Reply
#6

PHP код:
new Vip[MAX_PLAYERS]; 
Reply
#7

Quote:

C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(51 ) : error 021: symbol already defined: "Vip"
C:\Documents and Settings\qqq\Desktop\sampi\gamemodes\CGU123.pwn(51 ) : error 008: must be a constant expression; assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

51:

pawn Код:
new Vip[MAX_PLAYERS] = viplv;
??
Reply
#8

Cara, com o new variбvel[tipodedado]; vocк tб criando uma variбvel de numero inteiro, nгo tem como vocк atribuir um numero a ela, o que vocк pode fazer й atribuir numeros ou assimilar a variбveis que tambйm acumulam valores.
Exemplo:
pawn Код:
new Vip[MAX_PLAYERS];
Vip[playerid] = viplv; //Vamos supor que o valor de viplv estб setado em um comando com strtok...
if(viplv < 1 || viplv > 3) //Agora sim vocк poderia usar a variбvel viplv em comparaзгo com valorez pra ser atribuida a Vip[playerid]
Hб, sugiro que nгo use MAX_PLAYERS, defina o valor de MAXPLAYERS no inicio de GM com o mesmo numero de slot que vocк usa.(Vai economizar bastante no seu GM).
Reply
#9

Josma, muito obrigado, ajudou muito agora estб funcionando perfeitamente, era isto que eu precisava saber, tks.
'Reputation'.
Reply
#10

De nada =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)