PDA

View Full Version : sendclientmessage problem


cecko1235
02/11/2012, 08:57 AM
when i invite someone to join in gang, the gang's name does not appear.

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,for m);
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;
}

RedJohn
02/11/2012, 09:02 AM
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,for m);
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;
}

cecko1235
02/11/2012, 09:16 AM
now it show "You're inviteed to join in "0" from [g] asdasd ?

InfiniTy.
02/11/2012, 04:10 PM
Replace %d with %s

cecko1235
02/11/2012, 04:23 PM
Message is still You're invited to join in '', from [KOD]MrTinder

Unte99
02/11/2012, 04:30 PM
Can you show us the code where the gang's name is defined ?

cecko1235
02/11/2012, 04:31 PM
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"}

};

cecko1235
02/11/2012, 07:06 PM
help me please ...