Fk... Posted June 19, 2011 Posted June 19, 2011 vreau sa fac un textdraw care sasi schimbe culoarea singur , am facut eu cu random dar imi da o eroare tag mismach 1 ceva de genul ma puteti ajuta putin ?
heker Posted June 19, 2011 Posted June 19, 2011 la forward adaugi:forward TextdrawColorChange(); adaugi la sfarsitul modului public TextdrawColorChange() { new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF }; for(new i = 0; i < MAX_PLAYERS; i++) { TextDrawHideForPlayer(i,Textdraw0); TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]); TextDrawShowForPlayer(i,Textdraw0); } SetTimer("TextdrawColorChange", 60000, 0); }TextDraw0 schimbi cu textdraw-ul tau
Guest farse Posted June 20, 2011 Posted June 20, 2011 Cum a zis heker,sau poti folosi in string culori,gen ~r~,~g~ http://wiki.sa-mp.com/wiki/Colors_Listpublic TextdrawColorChange() { new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF }; TextDrawSetString(Textdraw0,"We ~r~ love ~g~ to ~p~ entertainment~b~ you!"); SetTimer("TextdrawColorChange", 60000, 0); } Si daca vrei sa folosesti versiunea lui heker,exista TextDrawHideForAll... public TextdrawColorChange() { new Colors[] = { 0x00ff0099, 0x5E5A80FF, 0x157DECFF , 0x9E7BFFFF , 0x659EC7FF , 0xF778A1FF , 0x43C6DBFF , 0xC9BE62FF , 0xFBB117FF, 0xC11B17FF, 0xFBBBB9FF }; TextDrawHideForAll(Textdraw0); TextDrawColor(Textdraw0,Colors[random(sizeof(Colors))]); TextDrawShowForAll(Textdraw0); SetTimer("TextdrawColorChange", 60000, 0); }
Question
Fk...
vreau sa fac un textdraw care sasi schimbe culoarea singur , am facut eu cu random dar imi da o eroare tag mismach 1 ceva de genul ma puteti ajuta putin ?
2 answers to this question
Recommended Posts