Quote:
Originally Posted by Dolby
pawn Код:
new sFaction[MAX_PLAYER_NAME];
if doesn't work again, post the all code.
|
pawn Код:
warning 229: index tag mismatch (symbol "ServerBilgi")
if(PlayerInfo[ playerid ][ pFaction ] == 0) { sFaction = ServerBilgi[Faction0]; }
pawn Код:
public ShowKarakterNormal(playerid,targetid)
{
if(IsPlayerConnected(playerid))
{
new
string[ 128 ],
Age = PlayerInfo[ playerid ][ pYas ],
Money = GetPlayerMoney( playerid ),
Bank = PlayerInfo[ playerid ][ pBankaHesap ]
;
new Level = PlayerInfo[playerid][pLevel];
new Exp = PlayerInfo[playerid][pExp];
new Skin = PlayerInfo[playerid][pSkin];
new Numara = PlayerInfo[playerid][pNumara];
new Sex[20];
if(PlayerInfo[ playerid ][ pCinsiyet ] == 1) { Sex = "Bay"; }
else if(PlayerInfo[ playerid ][ pCinsiyet ] == 2) { Sex = "Bayan"; }
new sFaction[MAX_PLAYER_NAME];
if(PlayerInfo[ playerid ][ pFaction ] == 0) { sFaction = ServerBilgi[Faction0]; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1) { sFaction = "LSPD"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2) { sFaction = "FDLS"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3) { sFaction = "Ulusal Guvenlik"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 10) { sFaction = "Gun Runners"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 11) { sFaction = "Grove Street"; }
new Rutbe[20];
if(PlayerInfo[ playerid ][ pRank ] == 0) { Rutbe = "Yok"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 1) { Rutbe = "Polis Memuru"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 2) { Rutbe = "Trafik Polisi"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 3) { Rutbe = "Kıdemli Memur"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 4) { Rutbe = "S.W.A.T"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 5) { Rutbe = "Mьdьr Yardımcısı"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 1 && PlayerInfo[ playerid ][ pRank ] == 6) { Rutbe = "Mьdьr"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 1) { Rutbe = "Ambulans Şцfцrь"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 2) { Rutbe = "İtfaiye Eri"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 3) { Rutbe = "Ambulans Gцrevlisi"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 4) { Rutbe = "Doktor"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 5) { Rutbe = "Cerrah"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 2 && PlayerInfo[ playerid ][ pRank ] == 6) { Rutbe = "Baş Hekim"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 1) { Rutbe = "Er"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 2) { Rutbe = "Onbaşı"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 3) { Rutbe = "Зavuş"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 4) { Rutbe = "Yьzbaşı"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 5) { Rutbe = "Binbaşı"; }
else if(PlayerInfo[ playerid ][ pFaction ] == 3 && PlayerInfo[ playerid ][ pRank ] == 6) { Rutbe = "Albay"; }
new Meslek[20];
if(PlayerInfo[ playerid ][ pMeslek ] == 0) { Meslek = "Yok"; }
else if(PlayerInfo[ playerid ][ pMeslek ] == SILAHCI) { Meslek = "Silahci"; }
else if(PlayerInfo[ playerid ][ pMeslek ] == TAKSICI) { Meslek = "Taksici"; }
else if(PlayerInfo[ playerid ][ pMeslek ] == TAMIRCI) { Meslek = "Tamirci"; }
else if(PlayerInfo[ playerid ][ pMeslek ] == KAMYONCU) { Meslek = "Kamyoncu"; }
else if(PlayerInfo[ playerid ][ pMeslek ] == PIZZACI) { Meslek = "Pizzaci"; }
new VIP[20];
if(PlayerInfo[ playerid ][ pVIP ] == 0) { VIP = "Normal"; }
else if(PlayerInfo[ playerid ][ pVIP ] == 1) { VIP = "Bronze"; }
else if(PlayerInfo[ playerid ][ pVIP ] == 2) { VIP = "Silver"; }
else if(PlayerInfo[ playerid ][ pVIP ] == 3) { VIP = "Gold"; }
new ADM[20];
if(PlayerInfo[ playerid ][ pAdmin ] == 0) { ADM = "Degil"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 1) { ADM = "Level 1"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 2) { ADM = "Level 2"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 3) { ADM = "Level 3"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 4) { ADM = "Level 4"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 5) { ADM = "Level 5"; }
else if(PlayerInfo[ playerid ][ pAdmin ] == 1338) { ADM = "Server Sahibi"; }
new UYRUK[20];
if(PlayerInfo[ playerid ][ pAksan ] == 0) { UYRUK = "Amerikali"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 1) { UYRUK = "Turk"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 2) { UYRUK = "Rus"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 3) { UYRUK = "Alman"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 4) { UYRUK = "Japon"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 5) { UYRUK = "Fransiz"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 6) { UYRUK = "Ispanyol"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 7) { UYRUK = "Cinli"; }
else if(PlayerInfo[ playerid ][ pAksan ] == 7) { UYRUK = "Ingiliz"; }
new Defter[20];
if(PlayerInfo[ playerid ][ pTDefter ] == 0) { Defter = "Yok"; }
else if(PlayerInfo[ playerid ][ pTDefter ] == 1) { Defter = "Var"; }
new Telefon[20];
if(PlayerInfo[ playerid ][ pNumara ] == 0) { Telefon = "Yok"; }
else if(PlayerInfo[ playerid ][ pNumara ] >= 1) { Telefon = "Var"; }
new Ehliyet[20];
if(PlayerInfo[ playerid ][ pEhliyet ] == 0) {Ehliyet = "Yok"; }
else if(PlayerInfo[ playerid ][ pEhliyet ] == 1) {Ehliyet = "Var"; }
format(string, sizeof(string), "========================[%s]========================", RPName(playerid));
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{009BFF}Level:{FFFFFF}[%d] {009BFF}Exp:{FFFFFF}[%d] {009BFF}Para:{FFFFFF}[%d$] {009BFF}Banka Hesap:{FFFFFF}[%d$]", Level,Exp,Money,Bank);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{009BFF}Telefon:{FFFFFF}[%s] {009BFF}Telefon Defteri:{FFFFFF}[%s] {009BFF}Numara:{FFFFFF}[%d]",Telefon,Defter,Numara);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{009BFF}Uyruk:{FFFFFF}[%s] {009BFF}Skin:{FFFFFF}[%d] {009BFF}Yas:{FFFFFF}[%d] {009BFF}Cinsiyet:{FFFFFF}[%s]",UYRUK,Skin,Age,Sex);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{009BFF}Faction:{FFFFFF}[%s] {009BFF}Meslek:{FFFFFF}[%s] {009BFF}Admin:{FFFFFF}[%s]",sFaction,Meslek,ADM);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{009BFF}Rutbe:{FFFFFF}[%s] {009BFF}Ehliyet:{FFFFFF}[%s] {009BFF}VIP:{FFFFFF}[%s]",Rutbe,Ehliyet,VIP);
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
pawn Код:
enum ServerInfo
{
Float:sPos_x,
Float:sPos_y,
Float:sPos_z,
Float:sPos_a,
Float:sMeslek1Pos_x,
Float:sMeslek1Pos_y,
Float:sMeslek1Pos_z,
Float:sMeslek2Pos_x,
Float:sMeslek2Pos_y,
Float:sMeslek2Pos_z,
Float:sMeslek3Pos_x,
Float:sMeslek3Pos_y,
Float:sMeslek3Pos_z,
Float:sMeslek4Pos_x,
Float:sMeslek4Pos_y,
Float:sMeslek4Pos_z,
Float:sMeslek5Pos_x,
Float:sMeslek5Pos_y,
Float:sMeslek5Pos_z,
Faction0[MAX_PLAYER_NAME],
Faction1[MAX_PLAYER_NAME],
Faction2[MAX_PLAYER_NAME],
Faction3[MAX_PLAYER_NAME],
Faction4[MAX_PLAYER_NAME],
Faction5[MAX_PLAYER_NAME],
Faction6[MAX_PLAYER_NAME],
Faction7[MAX_PLAYER_NAME],
Faction8[MAX_PLAYER_NAME],
Faction9[MAX_PLAYER_NAME],
sWorld,
sInterior,
sMaxOyuncuArac,
sHostName[MAX_PLAYER_NAME],
sMapName[MAX_PLAYER_NAME],
sModName[MAX_PLAYER_NAME]
}
new ServerBilgi[ServerInfo];
here all codes and Im Using YSI