How can i do this already?
#1

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?
Reply
#2

Quote:
Originally Posted by Ihsan_Cingisiz
Посмотреть сообщение
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?
1: Thats not your script!
2: Learn to script.
3: No one help this guy he needs to learn.

Your just a very lazy person.
Reply
#3

Quote:
Originally Posted by [BADBOY]
Посмотреть сообщение
1: Thats not your script!
2: Learn to script.
3: No one help this guy he needs to learn.

Your just a very lazy person.
xD, i made this script... What did you think than, copy from a other GM??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)