SA-MP Forums Archive
How can i do this already? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can i do this already? (/showthread.php?tid=164719)



How can i do this already? - Ihsan_Cingisiz - 01.08.2010

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?


Re: How can i do this already? - Jay. - 01.08.2010

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.


Re: How can i do this already? - Ihsan_Cingisiz - 01.08.2010

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??