sendclientmessage problem
#1

when i invite someone to join in gang, the gang's name does not appear.

pawn Код:
if(PlayerInfo[giveplayerid][pMember] == TEAM_CIVILIAN)
                {
                    if(IsPlayerConnected(giveplayerid))
                    {
                        if(giveplayerid != INVALID_PLAYER_ID)
                        {
                            new form[128];
                            new faction = PlayerInfo[playerid][pMember];
                            FactionRequest[giveplayerid] = faction;
                            format(form,sizeof(form),"You're inviteed to join in '%s', from '%s'",TeamInfo[faction][TeamName],GetName(playerid));
                            SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,form);
                            SendClientMessage(giveplayerid,COLOR_LIGHTBLUE, "type /acceptfaction(/af) to join or /cancelfaction(/cf) to cancel!");
                            format(form,sizeof(form),"you invite %s to join in %s. ",GetName(giveplayerid),TeamInfo[faction]);
                            SendClientMessage(playerid,COLOR_LIGHTBLUE,form);
                            return 1;
                        }
Reply
#2

pawn Код:
if(PlayerInfo[giveplayerid][pMember] == TEAM_CIVILIAN)
                {
                    if(IsPlayerConnected(giveplayerid))
                    {
                        if(giveplayerid != INVALID_PLAYER_ID)
                        {
                            new form[128];
                            new faction = PlayerInfo[playerid][pMember];
                            FactionRequest[giveplayerid] = faction;
                            format(form,sizeof(form),"You're inviteed to join in '%d', from '%s'",TeamInfo[faction][TeamName],GetName(playerid));
                            SendClientMessage(giveplayerid,COLOR_LIGHTBLUE,form);
                            SendClientMessage(giveplayerid,COLOR_LIGHTBLUE, "type /acceptfaction(/af) to join or /cancelfaction(/cf) to cancel!");
                            format(form,sizeof(form),"you invite %s to join in %d. ",GetName(giveplayerid),TeamInfo[faction]);
                            SendClientMessage(playerid,COLOR_LIGHTBLUE,form);
                            return 1;
                        }
Reply
#3

now it show "You're inviteed to join in "0" from [g] asdasd ?
Reply
#4

Replace %d with %s
Reply
#5

Message is still You're invited to join in '', from [KOD]MrTinder
Reply
#6

Can you show us the code where the gang's name is defined ?
Reply
#7

Код:
enum gInfo
{
    TeamName[64],
	TeamColor,
	TurfWarsWon,
	TurfWarsLost,
	RivalsKilled,
	HomiesDied,
	TeamScore,
	fRank1[256],
	fRank2[256],
	fRank3[256],
	fRank4[256],
	fRank5[256],
	fRank6[256]
}
No problem for me

Код:
new TeamInfo[MAX_TEAMS][gInfo]= {
{"Civilian", CIVILIAN_COLOR, 0, 0, 0, 0, 0, "None","None","None","None","City Manager","Mayor",},
{"Grove Street Families", GROVE_COLOR, 0, 0, 0, 0, 0, "Gangsta","Original Gangster","Double OG","Left Hand","Right Hand","Boss"},
{"Rolling Height Ballas", BALLA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Los Santos Vagos", VAGOS_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Varrio Los Aztecas", AZTECA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Italian Mafia", TRIAD_COLOR, 0, 0, 0, 0, 0, "Driver","Guard","Killer","Manager","Right Hand","Godfather"},
{"Japanese Yakuza", YAKUZA_COLOR, 0, 0, 0, 0, 0, "Rank1","Rank2","Rank3","Rank4","Rank5","Leader"},
{"Vinewood Cripz", CRIPZ_COLOR, 0, 0, 0, 0, 0, "Gangster","Professional Gangsta","Double OG","Triple OG","Co-Boss","Boss"},
{"Los Santos Police", POLICE_COLOR, 0, 0, 0, 0, 0, "Cadet","Officer","Sergeant","Inspector","Assistant Chief","Chief"},
{"Bad Boys", BADBOYS_COLOR, 0, 0, 0, 0, 0, "Gangster","Drug Dealer","Driver","Left Hand","Right Hand","Boss"},
{"Los Santos Army", COLOR_DARKGREEN, 0, 0, 0, 0, 0, "Private","Lieutenant","Captain","Major","Colonel","General"},
{"San Andreas Army Aviation", 0x62620040, 0, 0, 0, 0, 0, "Recruit","Soldier","Major","Captain","Commander","General"},
{"Biker Boys", COLOR_RED, 0, 0, 0, 0, 0, "Helper","Guitar man","Beats man","Singer","Popular","Rock Star"},
{"Jizzy's Club", COLOR_PINK, 0, 0, 0, 0, 0, "Messenger","Soldier","Manager","Left Hand","Right Hand","Jizzy"},
{"Las Venturas Bloods", 0xADAD303A, 0, 0, 0, 0, 0, "Gangsta","OG","Double OG","Left Hand","Right Hand","Boss"},
{"Asian Triads", 0xFF80003E, 0, 0, 0, 0, 0, "Dealer","Gangsta","OGangsta","Left Hand","Right Hand","Da Boss"},
{"Los Santos MIB Agents", 0x3AD18D76, 0, 0, 0, 0, 0, "New Agent","Agent","Special Agent","Secret Agent","MIB Agent","Professional Agent"},
{"Russian Mafia", 0x8000FF72, 0, 0, 0, 0, 0, "Driver","Gangster","Original Gangster","Left Hand","Co-Boss","BOSS"},
{"WILD EMPIER", WILD_COLOR, 0, 0, 0, 0, 0, "Driver","Gangster","Original Gangster","Left Hand","Co-Boss","BOSS"}

};
Reply
#8

help me please ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)