#define TEAM_BRASIL 1
#define COR_BRASIL 0xF21B1BFF
#define TEAM_EUA 2
#define COR_EUA 0x1B6DF2FF
#define TEAM_FRANCE 3
#define COR_FRANCE 0x1BF21BFF
#define TEAM_CHINA 4
#define COR_CHINA 0xF0C384FF
#define TEAM_INDIA 5
#define COR_INDIA 0xA2A8A4FF
//================================================================
new
Time[100],
Classes[100]
;
{
if(pTeam[playerid] == TEAM_BRASIL) Time = "Brasil";
if(pTeam[playerid] == TEAM_EUA) Time = "EUA";
if(pTeam[playerid] == TEAM_FRANCE) Time = "Franca";
if(pTeam[playerid] == TEAM_CHINA) Time = "China";
if(pTeam[playerid] == TEAM_INDIA) Time = "India";
if(gClasse[playerid] == SOLDADO) Classes = "Assalto";
else if(gClasse[playerid] == SNIPER) Classes = "Sniper";
else if(gClasse[playerid] == ENGENHEIRO) Classes = "Engenheiro";
else if(gClasse[playerid] == PILOTO) Classes = "Piloto";
else if(gClasse[playerid] == MEDICO) Classes = "Suporte";
}
SetPlayerChatBubble(playerid, "%s %s", 0xFF0000AA, 100.0, 10000,Time[playerid],Classes[playerid]);
// Includes ...
#include <a_samp>
// Enum ...
enum teste
{
pName,
pName2,
};
// Variбveis ...
new NameCargo[MAX_PLAYERS][teste];
// Forward ...
forward ChatBubble();
// Callbacks ...
public OnGameModeInit()
{
SetTimer("ChatBubble", 100, true);
return 1;
}
public ChatBubble()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(NameCargo[playerid][pName] == 1)
{
SetPlayerChatBubble(i, "Name", -1, 100.0, 10000);
}
else if(NameCargo[playerid][pName2] == 1)
{
SetPlayerChatBubble(i, "Name2", -1, 100.0, 10000);
}
}
return 1;
}
#define TEAM_BRASIL 1
#define COR_BRASIL 0xF21B1BFF
#define TEAM_EUA 2
#define COR_EUA 0x1B6DF2FF
#define TEAM_FRANCE 3
#define COR_FRANCE 0x1BF21BFF
#define TEAM_CHINA 4
#define COR_CHINA 0xF0C384FF
#define TEAM_INDIA 5
#define COR_INDIA 0xA2A8A4FF
new Time[100], Classes[100];
if(pTeam[playerid] == TEAM_BRASIL)
{
Time = "Brasil";
SetPlayerColor(playerid, COR_BRASIL);
}
if(pTeam[playerid] == TEAM_EUA)
{
Time = "EUA";
SetPlayerColor(playerid, COR_EUA);
}
if(pTeam[playerid] == TEAM_FRANCE)
{
Time = "Franca";
SetPlayerColor(playerid, COR_FRANCE);
}
if(pTeam[playerid] == TEAM_CHINA)
{
Time = "China";
SetPlayerColor(playerid, COR_CHINA);
}
if(pTeam[playerid] == TEAM_INDIA)
{
Time = "India";
SetPlayerColor(playerid, COR_INDIA);
}
if(gClasse[playerid] == SOLDADO) Classes = "Assalto";
if(gClasse[playerid] == SNIPER) Classes = "Sniper";
if(gClasse[playerid] == ENGENHEIRO) Classes = "Engenheiro";
if(gClasse[playerid] == PILOTO) Classes = "Piloto";
if(gClasse[playerid] == MEDICO) Classes = "Suporte";
SetPlayerChatBubble(playerid, "%s %s", GetPlayerColor(playerid), 100.0, 10000,Time, Classes);
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(3656) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Desktop\Battlefield Veterans\gamemodes\TDM.pwn(3656) : warning 202: number of arguments does not match definition
SetPlayerChatBubble(playerid, "%s %s", GetPlayerColor(playerid), 100.0, 10000, Time, Classes);
Olhe a minha vocк vai saber por que ta dando esse erro no SetPlayerChatBubble
|
@ExPLORE
pawn Код:
pawn Код:
o que fazer ? |
new MsgTime[30];
format(MsgTime, sizeof(MsgTime), "%s %s", Time, Classes);
SetPlayerChatBubble(playerid,MsgTime, GetPlayerColor(playerid), 100.0, 10000);