[Pomoc]Stats

Započeo nikolat007, Septembar 30, 2012, 11:59:00 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moja
Detaljan opis problema:Da li neko moze da mi pomogne oko boja hocu da stavim boje u dialogu npr da naziv bude plave a posle : da bude bele
Dio skripte:
CMD:teststats2(playerid, params[])
{
    new statss[768], statss1[128], statss2[128], statss3[128], statss4[128], statss5[128], statss6[128], statss7[128], statss8[128], statss9[128];
	new atext[20], ptext[100];
	if(PlayerInfo[playerid][pORG] == 1) { atext = "PD"; }
	else if(PlayerInfo[playerid][pORG] == 0) { atext = "/"; }
	if(PlayerInfo[playerid][pPosao] == 1) { ptext = "Vozac Autobusa"; }
	else if(PlayerInfo[playerid][pPosao] == 2) { ptext = "Kosac Trave"; }
	else if(PlayerInfo[playerid][pPosao] == 3) { ptext = "Cistac Ulica"; }
	else if(PlayerInfo[playerid][pPosao] == 4) { ptext = "Deliver"; }
	else if(PlayerInfo[playerid][pPosao] == 0) { ptext = "/"; }
	format(statss1, sizeof(statss1), "| Ime: %s |",GetName(playerid));
	format(statss2, sizeof(statss2), "| Level: %d |",PlayerInfo[playerid][pLevel]);
	format(statss3, sizeof(statss3), "| Novac: %d$ |",GetPlayerMoney(playerid));
	format(statss4, sizeof(statss4), "| Respekt: %d |",PlayerInfo[playerid][pRespekt]);
	format(statss5, sizeof(statss5), "| ORG: %s |",atext);
	format(statss6, sizeof(statss6), "| VipLevel: %d |",PlayerInfo[playerid][pVip]);
	format(statss7, sizeof(statss7), "| Posao: %s |",ptext);
	format(statss8, sizeof(statss8), "| AdminLevel: %d |",PlayerInfo[playerid][pAdminLevel]);
	format(statss9, sizeof(statss9), "| Skin: %d |",PlayerInfo[playerid][pSkin]);
	format(statss, sizeof(statss), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",statss1,statss2,statss3,statss4,statss5,statss6,statss7,statss8,statss9);
	ShowPlayerDialog(playerid,842,DIALOG_STYLE_MSGBOX,"STATS",statss,"Ok","Izadji");
	return 1;
}

CMD:teststats2(playerid, params[])
{
    new statss[768], statss1[128], statss2[128], statss3[128], statss4[128], statss5[128], statss6[128], statss7[128], statss8[128], statss9[128];
	new atext[20], ptext[100];
	if(PlayerInfo[playerid][pORG] == 1) { atext = "PD"; }
	else if(PlayerInfo[playerid][pORG] == 0) { atext = "/"; }
	if(PlayerInfo[playerid][pPosao] == 1) { ptext = "Vozac Autobusa"; }
	else if(PlayerInfo[playerid][pPosao] == 2) { ptext = "Kosac Trave"; }
	else if(PlayerInfo[playerid][pPosao] == 3) { ptext = "Cistac Ulica"; }
	else if(PlayerInfo[playerid][pPosao] == 4) { ptext = "Deliver"; }
	else if(PlayerInfo[playerid][pPosao] == 0) { ptext = "/"; }
	format(statss1, sizeof(statss1), "{28A2ED}| Ime: {ffffff}%s |",GetName(playerid));
	format(statss2, sizeof(statss2), "{28A2ED}| Level:  {ffffff}%d |",PlayerInfo[playerid][pLevel]);
	format(statss3, sizeof(statss3), "{28A2ED}| Novac:  {ffffff}%d$ |",GetPlayerMoney(playerid));
	format(statss4, sizeof(statss4), "{28A2ED}| Respekt:  {ffffff}%d |",PlayerInfo[playerid][pRespekt]);
	format(statss5, sizeof(statss5), "{28A2ED}| ORG:  {ffffff}%s |",atext);
	format(statss6, sizeof(statss6), "{28A2ED}| VipLevel:  {ffffff}%d |",PlayerInfo[playerid][pVip]);
	format(statss7, sizeof(statss7), "{28A2ED}| Posao:  {ffffff}%s |",ptext);
	format(statss8, sizeof(statss8), "{28A2ED}| AdminLevel:  {ffffff}%d |",PlayerInfo[playerid][pAdminLevel]);
	format(statss9, sizeof(statss9), "{28A2ED}| Skin:  {ffffff}%d |",PlayerInfo[playerid][pSkin]);
	format(statss, sizeof(statss), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",statss1,statss2,statss3,statss4,statss5,statss6,statss7,statss8,statss9);
	ShowPlayerDialog(playerid,842,DIALOG_STYLE_MSGBOX,"STATS",statss,"Ok","Izadji");
	return 1;
}


I MOGAO BIH DOCI SAD ODMA NA SKAJP!
Poslednja Izmena: Septembar 30, 2012, 12:08:23 POSLE PODNE od Bojan_Bole
Imperia Gaming - Owner
Imperia Gaming SA:MP - samp.imperia-gaming.info