31.05.2015, 19:06
Why it won't load in this case: player's sex and country.
I made this code and everything else works but country and player's sex doesn't show:
I made this code and everything else works but country and player's sex doesn't show:
PHP код:
CMD:stats(playerid,params[])
{
new statut[256],poruka[256],nearporuka[256];
new level = GetPlayerScore(playerid);
new ubojstva = PlayerInfo[playerid][pUbojstva];
new zlocini = PlayerInfo[playerid][pZlocini];
new smrti = PlayerInfo[playerid][pSmrti];
new novac = GetPlayerMoney(playerid);
new spol = PlayerInfo[playerid][pSpol];
new godine = PlayerInfo[playerid][pGodine];
new zemlja = PlayerInfo[playerid][pZemlja];
new banka = PlayerInfo[playerid][pBankNovac];
/* Proredak */
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,-1,""COLOR_CRVENA"Greska:{FFFFFF} Niste ulogirani na server");
format(poruka,sizeof(poruka),"{FFFFFF}Osobna iskaznica od igraca"COLOR_WG" %s{FFFFFF}\n",GetName(playerid));
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Level: %d\n",level); // score
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Ubojstava: %d\n",ubojstva); // kills
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Smrti: %d\n",smrti); // deaths
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Zlocina: %d\n",zlocini); // crimes
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Novac: $%d\n",novac); // money
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Banka: $%d\n",banka); // bank money
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Spol:"COLOR_SIVA" %s\n{FFFFFF}",spol); // PLAYER'S SEX
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Godine: %d\n",godine); // age
strcat(statut,poruka);
format(poruka,sizeof(poruka)," Zemlja:"COLOR_SIVA" %s\n",zemlja); // PLAYER'S COUNTRY
strcat(statut,poruka);
format(nearporuka,256,"* %s vadi svoju osobnu iskaznicu",GetName(playerid));
SendNearMessage(playerid,COLOR_ROZA,nearporuka); // message which sends information to near players.
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,""COLOR_ZUTA"Osobna iskaznica",statut,"Uredu",""); // showing dialog.
return 1;
}