SA-MP Forums Archive
[Ajuda] Stock INGOORG - 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] Stock INGOORG (/showthread.php?tid=248139)



[Ajuda] Stock INGOORG - JOKERBOY - 12.04.2011

pawn Код:
stock Infoorg(playerid)
{
    if(gTeam[playerid] != TAXISTA)
    SendClientMessage(playerid,BRANCO,"teste");
    {
    else
    }
    SendClientMessage(playerid,BRANCO,"SDUHASD");
    {
    return 1;
}
Код:
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(474) : error 029: invalid expression, assumed zero
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(480) : error 030: compound statement not closed at the end of file (started at line 471)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: (HELP - ME ) Stock INGOORG - Katros - 12.04.2011

Nгo entendir?
gTeam tб definido?


Re: (HELP - ME ) Stock INGOORG - JOKERBOY - 12.04.2011

Jб jб eo TAXISTA tambйm


Re: (HELP - ME ) Stock INGOORG - Diogo_Bras - 12.04.2011

Quais sгo as linhas? Poste as linhas dos erros.


Re: (HELP - ME ) Stock INGOORG - Katros - 12.04.2011

pawn Код:
stock Infoorg(playerid)
{
    if(gTeam[playerid] != TAXISTA)
    SendClientMessage(playerid,BRANCO,"teste");
    {
    else
    {
    SendClientMessage(playerid,BRANCO,"SDUHASD");
    }
    return 1;
}



Re: (HELP - ME ) Stock INGOORG - JOKERBOY - 12.04.2011

pawn Код:
stock Infoorg(playerid)
{
    if(gTeam[playerid] != TAXISTA)
    SendClientMessage(playerid,BRANCO,"teste");
    }
        else
    {
    SendClientMessage(playerid,BRANCO,"SDUHASD");
    }
    return 1;
}
Код:
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(474) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(478) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
------

PUUTS JA ARRUMEI FALTAVA ABRIR CHAVE EMBAIXO DO IF..


Re: (HELP - ME ) Stock INGOORG - Macintosh - 12.04.2011

Qual realmente й seu ponto de vista a fazer na stock?

Pelo que vi.
Irб checar o team do player e se for diferente de TAXISTA,enviar a mensagem teste?

pawn Код:
stock Infoorg(playerid)
{
    if(gTeam[playerid] == TAXISTA)
    {
    SendClientMessage(playerid,BRANCO,"Йs Taxista?");
    }
    else if(gTeam[playerid] == LADRAO)
    {
    SendClientMessage(playerid,BRANCO,"Goidinho com Celular");
    }
    else if(gTeam[playerid] == MATADORREALENGO)
    {
    SendClientMessage(playerid,BRANCO,"Sou pica das galбxias");
    }
    else if(gTeam[playerid] == MORREDIABO)
    {
    SendClientMessage(playerid,BRANCO,"Ah Morre... Diabo");
    }
    return 1;
}
Se for assim que queres, foi assim que entendi.


Re: (HELP - ME ) Stock INGOORG - Falcon. - 12.04.2011

Quote:
Originally Posted by JOKERBOY
Посмотреть сообщение
Код:
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(474) : error 010: invalid function or declaration
C:\Users\GABRIEL\Desktop\samp03csvr_R2-2_win32\gamemodes\JokerBoy.pwn(478) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
------

PUUTS JA ARRUMEI FALTAVA ABRIR CHAVE EMBAIXO DO IF..
/\

The message you have entered is too short. Please lengthen your message to at least 4 characters --'


Re: [Ajuda] Stock INGOORG - Shadoww5 - 12.04.2011

Qual o significado do gTeam ?


Re: [Ajuda] Stock INGOORG - Macintosh - 12.04.2011

Й um modo de definir gangs e organizaзхes em servidores DM e TDM.

pawn Код:
static gTeam[MAX_PLAYERS];
pawn Код:
gTeam[i] = PlayerInfo[i][pTeam];
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 if(gTeam[playerid] >= 3) //se o team dele for 3 ou maior que 3 ele poderб entrar no veнculo...
 {
   new string[256];
   new enviarnome[MAX_PLAYER_NAME];
   GetPlayerName(playerid, enviarnome, sizeof(enviarnome));
   format(string, sizeof(string), "[AVISO] %s Entra no veiculo.", enviarnome);
   DetectorProx(5.0,playerid,string,Cor);
   return 1;
 }
 return 1;
}