[Ajuda] Erro :c - 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 :c (
/showthread.php?tid=511210)
Erro :c -
LeoTOB - 04.05.2014
Erro :
pawn Код:
C:\Users\LeoTOB\Desktop\gamemode.pwn(80) : error 001: expected token: ";", but found "]"
Linha
pawn Код:
if(gTeam[playerid] == CV)
Re: Erro :c -
lKoDlFuLLaNNo - 04.05.2014
pawn Код:
if(gTeam[playerid] == CV)
{//abre
//funзao
}//fecha
vizualizo se vc fecho ? isso acontece quando abre alguma chave esquece de fecha-la
Re: Erro :c -
LeoTOB - 04.05.2014
Quote:
Originally Posted by lKoDlFuLLaNNo
pawn Код:
if(gTeam[playerid] == CV) {//abre //funзao }//fecha
vizualizo se vc fecho ? isso acontece quando abre alguma chave esquece de fecha-la
|
sim fechei
pawn Код:
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
SetPlayerColor(playerid, CorGrove); // Setarб a Cor Do Nick Dele.
SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); // Setarб Ele Para Estб Posiзгo Para Sua HQ.
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele Para 0 ( RUA ).
}
OFF , Carai me matei achando q tinha um bicho na minha tela qnd vi era sua Assinatura kkkkkkk
Re: Erro :c -
ANNIHILATION - 04.05.2014
LEO TENTA ASSIM :
pawn Код:
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
SetPlayerColor(playerid, CorGrove); // Setarб a Cor Do Nick Dele.
SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); // Setarб Ele Para Estб Posiзгo Para Sua HQ.
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele Para 0 ( RUA ).
return 1;
}
Re: Erro :c -
LeoTOB - 04.05.2014
Quote:
Originally Posted by ANNIHILATION
LEO TENTA ASSIM :
pawn Код:
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo : { SetPlayerColor(playerid, CorGrove); // Setarб a Cor Do Nick Dele. SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); // Setarб Ele Para Estб Posiзгo Para Sua HQ. SetPlayerInterior(playerid, 0); // Setarб o Interior Dele Para 0 ( RUA ). return 1; }
|
Continua o mesmo
Entranho que eu botei no comeзo do game mode
Re: Erro :c -
DogeMan - 04.05.2014
gTeam[playerid] ==
"Grove
"
Esqueceu das aspas manin. Espero ter ajudado
Re: Erro :c -
LeoTOB - 04.05.2014
Quote:
Originally Posted by DogeMan
gTeam[playerid] == "Grove "
Esqueceu das aspas manin. Espero ter ajudado 
|
Continua
C:\Users\LeoTOB\Desktop\gamemode.pwn(80) : error 017: undefined symbol "gTeam"
....
Re: Erro :c -
DogeMan - 04.05.2014
Tem certeza que criou a variбvel gTeam? Й uma variбvel global?
Re: Erro :c -
LeoTOB - 04.05.2014
Quote:
Originally Posted by DogeMan
Tem certeza que criou a variбvel gTeam? Й uma variбvel global?
|
Nгo й assim ?
new gTeam[MAX_PLAYERS];
Re: Erro :c -
ANNIHILATION - 04.05.2014
LEO COLOCA ISTO EM CIMA DO COMANDO E APAGA O DO COMEЗO DO GM.
new gTeam[MAX_PLAYERS];
- NO CASO ABAIXO EU COLOQUEI O CMD EM UMA FS , E DEU SIMBOLO INDEFINIDO DA CORGROVE E MAIS UM LA MAS O
DO GTEAM IGUAL VC POSTO NAO DEU.. ACHO QUE PODERA AJUDAR.
Код:
new gTeam[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(gTeam[playerid] == "Grove") // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
SetPlayerColor(playerid, CorGrove); // Setarб a Cor Do Nick Dele.
SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); // Setarб Ele Para Estб Posiзгo Para Sua HQ.
SetPlayerInterior(playerid, 0); // Setarб o Interior Dele Para 0 ( RUA ).
return 1;
}
return 0;
}