if(reason >= 0 && reason <= 46)
{
new kickname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new org=PlayerInfo[killerid][pMember];
new org2=PlayerInfo[playerid][pMember];
new nameorg;
new nameorg2;
if(org == 1){
nameorg = SFPD;
}else if(org == 2){
nameorg = FBI;
}else if(org == 3){
nameorg = GN;
}else if(org == 4){
nameorg = Socorrista;
}else if(org == 5){
nameorg = Al'Qeada;
}else if(org == 6){
nameorg = Rifas;
}else if(org == 7){
nameorg = Prefeitura;
}else if(org == 8){
nameorg = Hitman;
}else if(org == 9){
nameorg = Reporter;
}else if(org == 12){
nameorg = Latin;
}else if(org == 13){
nameorg = Nang;
}else if(org == 15){
nameorg = Triads;
}else{
nameorg = Civil;
}
if(org2 == 1){
nameorg2 = SFPD;
}else if(org2 == 2){
nameorg2 = FBI;
}else if(org2 == 3){
nameorg2 = GN;
}else if(org2 == 4){
nameorg2 = Socorrista;
}else if(org2 == 5){
nameorg2 = Al'Qeada;
}else if(org2 == 6){
nameorg2 = Ballas;
}else if(org2 == 7){
nameorg2 = Prefeitura;
}else if(org2 == 8){
nameorg2 = Hitman;
}else if(org2 == 9){
nameorg2 = Reporter;
}else if(org2 == 10){
nameorg2 = Groove;
}else if(org2 == 11){
nameorg2 = Yakusa;
}else if(org2 == 12){
nameorg2 = Triads;
}else{
nameorg2 = Civil;
}
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(killerid,kickname,sizeof(kickname));
format(string,sizeof(string),"[%d]%s da ORG %s cometeu DM em [%d]%s da ORG %s. Verifique.",killerid,kickname,org,playerid,playername,org2);
ABroadCast(COLOR_NANG, string, 1);
return 1;
}
if(reason >= 0 && reason <= 46)
{
new kickname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new org=PlayerInfo[killerid][pMember];
new org2=PlayerInfo[playerid][pMember];
new nameorg;
new nameorg2;
if(org == 1){
nameorg = SFPD;
}else if(org == 2){
nameorg = FBI;
}else if(org == 3){
nameorg = GN;
}else if(org == 4){
nameorg = Socorrista;
}else if(org == 5){
nameorg = AlQeada;
}else if(org == 6){
nameorg = Rifas;
}else if(org == 7){
nameorg = Prefeitura;
}else if(org == 8){
nameorg = Hitman;
}else if(org == 9){
nameorg = Reporter;
}else if(org == 12){
nameorg = Latin;
}else if(org == 13){
nameorg = Nang;
}else if(org == 15){
nameorg = Triads;
}else{
nameorg = Civil;
}
if(org2 == 1){
nameorg2 = SFPD;
}else if(org2 == 2){
nameorg2 = FBI;
}else if(org2 == 3){
nameorg2 = GN;
}else if(org2 == 4){
nameorg2 = Socorrista;
}else if(org2 == 5){
nameorg2 = AlQeada;
}else if(org2 == 6){
nameorg2 = Ballas;
}else if(org2 == 7){
nameorg2 = Prefeitura;
}else if(org2 == 8){
nameorg2 = Hitman;
}else if(org2 == 9){
nameorg2 = Reporter;
}else if(org2 == 10){
nameorg2 = Groove;
}else if(org2 == 11){
nameorg2 = Yakusa;
}else if(org2 == 12){
nameorg2 = Triads;
}else{
nameorg2 = Civil;
}
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(killerid,kickname,sizeof(kickname));
format(string,sizeof(string),"[%d]%s da ORG %s cometeu DM em [%d]%s da ORG %s. Verifique.",killerid,kickname,org,playerid,playername,org2);
ABroadCast(COLOR_NANG, string, 1);
return 1;
}
if(killerid != 255)
{
if(reason >= 0 && reason <= 46)
{
new kickname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new org=PlayerInfo[killerid][pMember];
new org2=PlayerInfo[playerid][pMember];
new nameorg;
new nameorg2;
if(org == 1){
nameorg = SFPD;
}else if(org == 2){
nameorg = FBI;
}else if(org == 3){
nameorg = GN;
}else if(org == 4){
nameorg = Socorrista;
}else if(org == 5){
nameorg = Al'Qeada;
}else if(org == 6){
nameorg = Rifas;
}else if(org == 7){
nameorg = Prefeitura;
}else if(org == 8){
nameorg = Hitman;
}else if(org == 9){
nameorg = Reporter;
}else if(org == 12){
nameorg = Latin;
}else if(org == 13){
nameorg = Nang;
}else if(org == 15){
nameorg = Triads;
}else{
nameorg = Civil;
}
if(org2 == 1){
nameorg2 = SFPD;
}else if(org2 == 2){
nameorg2 = FBI;
}else if(org2 == 3){
nameorg2 = GN;
}else if(org2 == 4){
nameorg2 = Socorrista;
}else if(org2 == 5){
nameorg2 = Al'Qeada;
}else if(org2 == 6){
nameorg2 = Rifas;
}else if(org2 == 7){
nameorg2 = Prefeitura;
}else if(org2 == 8){
nameorg2 = Hitman;
}else if(org2 == 9){
nameorg2 = Reporter;
}else if(org2 == 12){
nameorg2 = Latin;
}else if(org2 == 13){
nameorg2 = Nang;
}else if(org2 == 15){
nameorg2 = Triads;
}else{
nameorg2 = Civil;
}
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(killerid,kickname,sizeof(kickname));
format(string,sizeof(string),"[%d]%s da ORG %s cometeu DM em [%d]%s da ORG %s. Verifique.",killerid,kickname,org,playerid,playername,org2);
ABroadCast(COLOR_NANG, string, 1);
return 1;
}
else if(reason >=47 && reason <=54)
{
new kickname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(killerid,kickname,sizeof(kickname));
format(string,sizeof(string),"[%d]%s cometeu DriveBy em [%d]%s. Verifique.",killerid,kickname,playerid,playername);
ABroadCast(COLOR_NANG, string, 1);
return 1;
}
}
if(reason >= 0 && reason <= 46)
{
new kickname[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new org[20];
org=PlayerInfo[killerid][pMember];
new org2[20];
org2=PlayerInfo[playerid][pMember];
new nameorg;
new nameorg2;
if(org == 1){
nameorg = "SFPD";
}else if(org == 2){
nameorg = "FBI";
}else if(org == 3){
nameorg = "GN";
}else if(org == 4){
nameorg = "Socorrista";
}else if(org == 5){
nameorg = "Al'Qaeda";
}else if(org == 6){
nameorg = "Riffas";
}else if(org == 7){
nameorg = "Prefeitura";
}else if(org == 8){
nameorg = "Hitman";
}else if(org == 9){
nameorg = "Reporter";
}else if(org == 12){
nameorg = "Latin";
}else if(org == 13){
nameorg = "Nang";
}else if(org == 15){
nameorg = "Triads";
}else{
nameorg = "Civil";
}
if(org2 == 1){
nameorg2 = "SFPD";
}else if(org2 == 2){
nameorg2 = "FBI";
}else if(org2 == 3){
nameorg2 = "GN";
}else if(org2 == 4){
nameorg2 = "Socorrista";
}else if(org2 == 5){
nameorg2 = "Al'Qaeda";
}else if(org2 == 6){
nameorg2 = "Ballas";
}else if(org2 == 7){
nameorg2 = "Prefeitura";
}else if(org2 == 8){
nameorg2 = "Hitman";
}else if(org2 == 9){
nameorg2 = "Reporter";
}else if(org2 == 10){
nameorg2 = "Groove";
}else if(org2 == 11){
nameorg2 = "Yakusa";
}else if(org2 == 12){
nameorg2 = "Triads";
}else{
nameorg2 = "Civil";
}
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(killerid,kickname,sizeof(kickname));
format(string,sizeof(string),"[%d] %s da ORG %s cometeu DM em [%d] %s da ORG %s. Verifique.",killerid,kickname,nameorg,playerid,playername,nameorg2);
ABroadCast(COLOR_NANG, string, 1);
return 1;
}
// (1) Troquei esta linha:
format(string,sizeof(string),"[%d] %s da ORG %s cometeu DM em [%d] %s da ORG %s. Verifique.",killerid,kickname,org,playerid,playername,org2);
// (2) Por esta:
format(string,sizeof(string),"[%d] %s da ORG %s cometeu DM em [%d] %s da ORG %s. Verifique.",killerid,kickname,nameorg,playerid,playername,nameorg2);
new nameorg;
new nameorg2;
new nameorg[20];
new nameorg2[20];
Deu certo valeu pessoa, entгo quando eu for igualar uma variavel a um texto tenho q colocar aquele [] e dentro o tamanho?
|