[Ayuda] Urgente! їPorque esto!? -
Blaze_Strockovic - 05.09.2012
Ayuda D: tengo un problema Catastrуfico y no entiendo el porque! bueno os explico... Yo hostie mi servidor en un hosting samp, monte todo normalmente.. bueno pero no entiendo porque aparecio este bug, la Faccion numero 5 y 14, los que sean lideres de esas facciones al usar /invitar con un player, lo invita normal, pero cuando ese player pone /cuenta crashea el Server.. y cierra el host D: ayudenme no se porque.. con esas dos! Aqui les dejo el cmd para ver si tiene un Error ._.
pawn Код:
if(strcmp(cmd, "/invitar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /invitar [ID | Nombre]");
return 1;
}
new para1;
new ftext[128];
para1 = ReturnUser(tmp);
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
{
//====================================[ Skin de las facciones] ====================================
if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "SAPD"; ChosenSkin[para1] = 71; SetPlayerSkin(para1, 71); }
else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FR"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "SAMD"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Mara Salvatrucha13"; ChosenSkin[para1] = 116; SetPlayerSkin(para1, 116); }//Esta es la que da crash
else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 6; gTeam[para1] = 6; ftext = "La Cosa Nostra"; ChosenSkin[para1] = 125; SetPlayerSkin(para1, 125); }
else if(PlayerInfo[playerid][pLeader] == 7) { PlayerInfo[para1][pTeam] = 11; gTeam[para1] = 11; ftext = "Gobierno de LS"; ChosenSkin[para1] = 66; SetPlayerSkin(para1, 66); }
else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "INS"; ChosenSkin[para1] = 165; SetPlayerSkin(para1, 165); }
else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Estudio LSTV"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Crazy Motor's"; ChosenSkin[para1] = 50; SetPlayerSkin(para1, 50); }
else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Compaсia de Taxis"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 5; ftext = "Familia Bratva"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
else if(PlayerInfo[playerid][pLeader] == 13) { PlayerInfo[para1][pTeam] = 13; gTeam[para1] = 5; ftext = "Policia Frontera"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
else if(PlayerInfo[playerid][pLeader] == 14) { PlayerInfo[para1][pTeam] = 14; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); } //esta tambien da crash D:
else if(PlayerInfo[playerid][pLeader] == 15) { PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 15; ftext = "Cripz"; ChosenSkin[para1] = 293; SetPlayerSkin(para1, 293); }
else if(PlayerInfo[playerid][pLeader] == 16) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Banqueros"; ChosenSkin[para1] = 7; SetPlayerSkin(para1, 7); }
else if(PlayerInfo[playerid][pLeader] == 17) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Kings of Shadows"; ChosenSkin[para1] = 109; SetPlayerSkin(para1, 109); }
else if(PlayerInfo[playerid][pLeader] == 18) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Bloodz"; ChosenSkin[para1] = 103; SetPlayerSkin(para1, 103); }
else if(PlayerInfo[playerid][pLeader] == 19) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "XStreyatus"; ChosenSkin[para1] = 100; SetPlayerSkin(para1, 100); }
else if(PlayerInfo[playerid][pLeader] == 20) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Solt Of The Lost"; ChosenSkin[para1] = 111; SetPlayerSkin(para1, 111); }
else if(PlayerInfo[playerid][pLeader] == 21) { PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 12; ftext = "Prostituta"; ChosenSkin[para1] = 90; SetPlayerSkin(para1, 90); }
else if(PlayerInfo[playerid][pLeader] == 22) { PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 12; ftext = "Barzini"; ChosenSkin[para1] = 112; SetPlayerSkin(para1, 112); }
else if(PlayerInfo[playerid][pLeader] == 23) { PlayerInfo[para1][pTeam] = 23; gTeam[para1] = 12; ftext = "Criminals Th18"; ChosenSkin[para1] = 30; SetPlayerSkin(para1, 30); }
else if(PlayerInfo[playerid][pLeader] == 24) { PlayerInfo[para1][pTeam] = 24; gTeam[para1] = 12; ftext = "Cartel Red"; ChosenSkin[para1] = 123; SetPlayerSkin(para1, 123); }
else if(PlayerInfo[playerid][pLeader] == 25) { PlayerInfo[para1][pTeam] = 25; gTeam[para1] = 12; ftext = "Fuerza Naval"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
else if(PlayerInfo[playerid][pLeader] == 26) { PlayerInfo[para1][pTeam] = 26; gTeam[para1] = 12; ftext = "Fuerza Aerea"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
else if(PlayerInfo[playerid][pLeader] == 27) { PlayerInfo[para1][pTeam] = 27; gTeam[para1] = 12; ftext = "Medicos SF"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); }
else if(PlayerInfo[playerid][pLeader] == 28) { PlayerInfo[para1][pTeam] = 28; gTeam[para1] = 12; ftext = "Ladrones LV"; ChosenSkin[para1] = 26; SetPlayerSkin(para1, 26); }
else if(PlayerInfo[playerid][pLeader] == 29) { PlayerInfo[para1][pTeam] = 29; gTeam[para1] = 12; ftext = "Estudio SFTV"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
else if(PlayerInfo[playerid][pLeader] == 30) { PlayerInfo[para1][pTeam] = 30; gTeam[para1] = 12; ftext = "Los Chilliad"; ChosenSkin[para1] = 224; SetPlayerSkin(para1, 224); }
else if(PlayerInfo[playerid][pLeader] == 31) { PlayerInfo[para1][pTeam] = 31; gTeam[para1] = 12; ftext = "Alcalde [LS/SF]"; ChosenSkin[para1] = 164; SetPlayerSkin(para1, 164); }
else if(PlayerInfo[playerid][pLeader] == 32) { PlayerInfo[para1][pTeam] = 32; gTeam[para1] = 12; ftext = "Yakuza [SF]"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120); }
else if(PlayerInfo[playerid][pLeader] == 33) { PlayerInfo[para1][pTeam] = 33; gTeam[para1] = 12; ftext = "Torino"; ChosenSkin[para1] = 299; SetPlayerSkin(para1, 299); }
else if(PlayerInfo[playerid][pLeader] == 34) { PlayerInfo[para1][pTeam] = 34; gTeam[para1] = 12; ftext = "Need For Speed"; ChosenSkin[para1] = 158; SetPlayerSkin(para1, 158); }
else if(PlayerInfo[playerid][pLeader] == 35) { PlayerInfo[para1][pTeam] = 35; gTeam[para1] = 12; ftext = "Taxis SF"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59); }
else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
PlayerInfo[para1][pRank] = 1;
PlayerInfo[para1][pExit] = 10;
printf(" %s has invitado a %s han entrado %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), " Usted ha entrado a la Facciуn: [%s] Invitado por el lider %s", ftext,sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), " Tu has sido Invitado %s a la Facciтn: [%s]", giveplayer,ftext);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "[Error] El Usuario aparece en Otra Facciуn/Organizaciуn.");
return 1;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Solo los lideres pueden usar este comando!");
}
}
return 1;
}
Respuesta: [Ayuda] Urgente! їPorque esto!? -
TiNcH010 - 05.09.2012
Pero pasa el /cuenta para ver que crashea...
Respuesta: [Ayuda] Urgente! їPorque esto!? -
Blaze_Strockovic - 06.09.2012
Quote:
Originally Posted by TiNcH010
Pero pasa el /cuenta para ver que crashea...
|
es que no es el /cuenta el problema, Entendiste la explicaciуn que di mas arriba? leela un poco bien, haber si me entiendes, osea... el /cuenta anda perfectamente... pero al parecer si soy Miembro de las facciones 5 y 14 osea YKZ y MS13 (en mi sv) los miembros ponen /cuenta y crashea el sv no se porque, pero igual aqui te lo dejo: xD
pawn Код:
if (strcmp(cmd, "/cuenta", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
ShowStats(playerid,playerid);
GetPlayerName(playerid, sendername, sizeof(sendername));
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Usted no esta Logueado en el Servidor!");
}
}
return 1;
}
El cuenta no tiene nada que ver.. creo yo.
Re: [Ayuda] Urgente! їPorque esto!? -
VodKa' - 06.09.2012
Pero osea, en el primer code dice que no te podes unir a 2 facciones ._.
Osea, vos decis si yo soy YKZ y quiero entrar a MS13 ahi se crashea?
Respuesta: [Ayuda] Urgente! їPorque esto!? -
El Bardo - 06.09.2012
Posteб el ShowStats
Respuesta: [Ayuda] Urgente! їPorque esto!? -
Blaze_Strockovic - 06.09.2012
No entiendes
![Picard](images/smilies/picard2.png)
(<--me encanta ese meme xD) no osea, Te dire un Ejemplo muy entendible! xD bien, yo soy de Yakuza o Mara Salvatrucha 13 (facciones que cree en mi servidor) bien pongamos que sea lider de cualquiera de las dos, y tu eres Civil, y te pongo /invitar ID, osea te meto a mi faccion, Aja. Entras normalmente.. pero cuando el que fue Invitado (Giveplayer | Playerid) osea tu, pone /cuenta Crashea el server y se apaga todo a la re mierda
PD: aqui te dejo el ShowStats:
pawn Код:
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Masculino"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Femenino"; }
new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "America"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Europa"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Asia"; }
else if(PlayerInfo[targetid][pOrigin] == 4) { otext = "Africa"; }
new ttext[20];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "FaccionX"; }
else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civilian"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "FaccionX; } //
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "Mara Salvatrucha"; } //los miembros al poner /cuenta hacen crashear el sv .-.
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "FaccionX"; }
//else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { ttext = "Yakuza"; } //los miembros al poner /cuenta hacen crashear el sv .-.
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21) { ttext = "FaccionX"; } //
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 24 || PlayerInfo[targetid][pLeader] == 24) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 26 || PlayerInfo[targetid][pLeader] == 26) { ttext = FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 27 || PlayerInfo[targetid][pLeader] == 27) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 28 || PlayerInfo[targetid][pLeader] == 28) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 29 || PlayerInfo[targetid][pLeader] == 29) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 30 || PlayerInfo[targetid][pLeader] == 30) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 31 || PlayerInfo[targetid][pLeader] == 31) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 32 || PlayerInfo[targetid][pLeader] == 32) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 33 || PlayerInfo[targetid][pLeader] == 33) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 34 || PlayerInfo[targetid][pLeader] == 34) { ttext = "FaccionX"; }
else if(PlayerInfo[targetid][pMember] == 35 || PlayerInfo[targetid][pLeader] == 35) { ttext = "FaccionX"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "X"; }
else if(STDPlayer[targetid] == 2) { dtext = "X"; }
else if(STDPlayer[targetid] == 3) { dtext = "X"; }
else { dtext = "No"; }
new ftext[30];
///============================ [ Lista de Rangos en cuenta] ===================
if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)
{ ftext = "X; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "MS13"; }//faccion del crash
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)
{ ftext = "X."; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)
{ ftext = "X; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)
{ ftext = "YKZ"; }//faccion del crash
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 24 || PlayerInfo[targetid][pLeader] == 24)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 26 || PlayerInfo[targetid][pLeader] == 26)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 27 || PlayerInfo[targetid][pLeader] == 27)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 28 || PlayerInfo[targetid][pLeader] == 28)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 29 || PlayerInfo[targetid][pLeader] == 29)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 34 || PlayerInfo[targetid][pLeader] == 34)
{ ftext = "X"; }
else if(PlayerInfo[targetid][pMember] == 30 || PlayerInfo[targetid][pLeader] == 30)
{ ftext = "X"; }
else
{ ftext = "None"; }
new f2text[20];
if(PlayerInfo[targetid][pFMember] < 255) { f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName]; }
else { f2text = "None"; }
new rtext[64];
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)/
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Rank:%s X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "Novato"; }
}
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 29 || PlayerInfo[targetid][pLeader] == 29)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 30 || PlayerInfo[targetid][pLeader] == 30)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14)// YKZ Faccion del crash .-.
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 33 || PlayerInfo[targetid][pLeader] == 33)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 34 || PlayerInfo[targetid][pLeader] == 34)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 35 || PlayerInfo[targetid][pLeader] == 35)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 26 || PlayerInfo[targetid][pLeader] == 26)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 27 || PlayerInfo[targetid][pLeader] == 27)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)//MS13 Segunda facc de crash .-.
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Pendejo"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Cabron Amigable"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "El Cuervo"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Soldado Carnal"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vato del Jefe"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "El Gringo"; }
else { rtext = "Pendejo"; }
}
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 31 || PlayerInfo[targetid][pLeader] == 31)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)// INS
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(IsATaxiDriver(targetid))
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 24 || PlayerInfo[targetid][pLeader] == 24)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "X"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "X"; }
else { rtext = "X"; }
}
else
{
rtext = "None";
}
new jtext[20]; // * => Activo / mejoras
if(PlayerInfo[targetid][pJob] == 1) { jtext = "X"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "X"; } // * New!
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "X"; } // * New!
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "X"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 17) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "X"; } // *
else if(PlayerInfo[targetid][pJob] == 24) { jtext = "X"; } // *
else { jtext = "None"; }
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "X"; }
else if(PlayerInfo[targetid][pDonateRank] >= 2) { drank = "X"; }
else { drank = "None"; }
new age = PlayerInfo[targetid][pAge];
new ptime = PlayerInfo[targetid][pConnectTime];
new arrests = PlayerInfo[targetid][pArrested];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMateriales];
new Ganzuas = PlayerInfo[targetid][pGanzuas];
new level = PlayerInfo[targetid][pLevel];
new sexo = PlayerInfo[targetid][pSex];
new exp = PlayerInfo[targetid][pExp];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new pmonedas = PlayerInfo[targetid][pMonedas];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new housekey = PlayerInfo[targetid][pPhousekey];
new bizkey = PlayerInfo[targetid][pPbiskey];
//new Auto1 = Carlist[playerid][Carid];
//new Auto2 = Carlist2[playerid][Carid];
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
Respuesta: [Ayuda] Urgente! їPorque esto!? -
Blaze_Strockovic - 06.09.2012
[B]PD:Ya lo arregle por mi mismo, encontre el Error... igual gracias por todo