01.08.2010, 17:15
Hello, i want that in the stats the 1 is 'yes', and 2 'no'.
My script:
new str1[128];
new str2[128];
new str3[128];
new pHours = PlayerInfo[playerid][PlayingHours];
new aLevel = PlayerInfo[playerid][AdminLevel];
new pCash = PlayerInfo[playerid][Cash];
new pDeaths = PlayerInfo[playerid][Deaths];
new pKills = PlayerInfo[playerid][Kills];
new pMPlayer = PlayerInfo[playerid][MusicPlayer];
new pName[100];
GetPlayerName(playerid, pName, playerid);
format(str1, sizeof(str1), "[==============================| » Stats of %s « |==============================]", pName);
format(str2, sizeof(str2), "[PLAYER]: Playing Hours: [%d] Admin Level: [%d] Kills: [%d] Deaths: [%d]", pHours, aLevel, pKills, pDeaths);
format(str3, sizeof(str3), "[INVENTORY]: Cash: [$%d] CD-Player [%d]", pCash, pMPlayer);
SendClientMessage(playerid, COLOR_GREEN, str1);
SendClientMessage(playerid, COLOR_LIGHTGREEN, str2);
SendClientMessage(playerid, COLOR_LIGHTGREEN, str3);
SendClientMessage(playerid, COLOR_GREEN, str1);
return 1;
}
I want by the CD-Player ((pMPlayer)) that the 0 no is and 1 is yes..
How can i do this someone have an example?
My script:
new str1[128];
new str2[128];
new str3[128];
new pHours = PlayerInfo[playerid][PlayingHours];
new aLevel = PlayerInfo[playerid][AdminLevel];
new pCash = PlayerInfo[playerid][Cash];
new pDeaths = PlayerInfo[playerid][Deaths];
new pKills = PlayerInfo[playerid][Kills];
new pMPlayer = PlayerInfo[playerid][MusicPlayer];
new pName[100];
GetPlayerName(playerid, pName, playerid);
format(str1, sizeof(str1), "[==============================| » Stats of %s « |==============================]", pName);
format(str2, sizeof(str2), "[PLAYER]: Playing Hours: [%d] Admin Level: [%d] Kills: [%d] Deaths: [%d]", pHours, aLevel, pKills, pDeaths);
format(str3, sizeof(str3), "[INVENTORY]: Cash: [$%d] CD-Player [%d]", pCash, pMPlayer);
SendClientMessage(playerid, COLOR_GREEN, str1);
SendClientMessage(playerid, COLOR_LIGHTGREEN, str2);
SendClientMessage(playerid, COLOR_LIGHTGREEN, str3);
SendClientMessage(playerid, COLOR_GREEN, str1);
return 1;
}
I want by the CD-Player ((pMPlayer)) that the 0 no is and 1 is yes..
How can i do this someone have an example?