SA-MP Forums Archive
Y_Commands - 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)
+--- Thread: Y_Commands (/showthread.php?tid=441663)



Y_Commands - DeMoX - 03.06.2013

After a while, after one modification on text-draws, i joined to test them but i was shocked after trying to use a command, all commands didn't work.
I tested ZCMD and it worked, but i wish to use Y_commands again.
The modification was on text-draws so there's way it can affect commands anyways that's what i have added :
pawn Код:
new Text:Stars[20];
pawn Код:
Stars[0] = TextDrawCreate(485.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[0], 0.449999, 1.600000);
    TextDrawAlignment(Stars[0], 1);
    TextDrawColor(Stars[0], -5963521);
    TextDrawSetShadow(Stars[0], 0);
    TextDrawSetOutline(Stars[0], 1);
    TextDrawBackgroundColor(Stars[0], 51);
    TextDrawFont(Stars[0], 2);
    TextDrawSetProportional(Stars[0], 1);

    Stars[1] = TextDrawCreate(496.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[1], 0.449999, 1.600000);
    TextDrawAlignment(Stars[1], 1);
    TextDrawColor(Stars[1], -5963521);
    TextDrawSetShadow(Stars[1], 0);
    TextDrawSetOutline(Stars[1], 1);
    TextDrawBackgroundColor(Stars[1], 51);
    TextDrawFont(Stars[1], 2);
    TextDrawSetProportional(Stars[1], 1);

    Stars[2] = TextDrawCreate(507.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[2], 0.449999, 1.600000);
    TextDrawAlignment(Stars[2], 1);
    TextDrawColor(Stars[2], -5963521);
    TextDrawSetShadow(Stars[2], 0);
    TextDrawSetOutline(Stars[2], 1);
    TextDrawBackgroundColor(Stars[2], 51);
    TextDrawFont(Stars[2], 2);
    TextDrawSetProportional(Stars[2], 1);

    Stars[3] = TextDrawCreate(518.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[3], 0.449999, 1.600000);
    TextDrawAlignment(Stars[3], 1);
    TextDrawColor(Stars[3], -5963521);
    TextDrawSetShadow(Stars[3], 0);
    TextDrawSetOutline(Stars[3], 1);
    TextDrawBackgroundColor(Stars[3], 51);
    TextDrawFont(Stars[3], 2);
    TextDrawSetProportional(Stars[3], 1);

    Stars[4] = TextDrawCreate(529.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[4], 0.449999, 1.600000);
    TextDrawAlignment(Stars[4], 1);
    TextDrawColor(Stars[4], -5963521);
    TextDrawSetShadow(Stars[4], 0);
    TextDrawSetOutline(Stars[4], 1);
    TextDrawBackgroundColor(Stars[4], 51);
    TextDrawFont(Stars[4], 2);
    TextDrawSetProportional(Stars[4], 1);

    Stars[5] = TextDrawCreate(540.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[5], 0.449999, 1.600000);
    TextDrawAlignment(Stars[5], 1);
    TextDrawColor(Stars[5], -5963521);
    TextDrawSetShadow(Stars[5], 0);
    TextDrawSetOutline(Stars[5], 1);
    TextDrawBackgroundColor(Stars[5], 51);
    TextDrawFont(Stars[5], 2);
    TextDrawSetProportional(Stars[5], 1);

    Stars[6] = TextDrawCreate(551.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[6], 0.449999, 1.600000);
    TextDrawAlignment(Stars[6], 1);
    TextDrawColor(Stars[6], -5963521);
    TextDrawSetShadow(Stars[6], 0);
    TextDrawSetOutline(Stars[6], 1);
    TextDrawBackgroundColor(Stars[6], 51);
    TextDrawFont(Stars[6], 2);
    TextDrawSetProportional(Stars[6], 1);

    Stars[7] = TextDrawCreate(562.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[7], 0.449999, 1.600000);
    TextDrawAlignment(Stars[7], 1);
    TextDrawColor(Stars[7], -5963521);
    TextDrawSetShadow(Stars[7], 0);
    TextDrawSetOutline(Stars[7], 1);
    TextDrawBackgroundColor(Stars[7], 51);
    TextDrawFont(Stars[7], 2);
    TextDrawSetProportional(Stars[7], 1);

    Stars[8] = TextDrawCreate(573.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[8], 0.449999, 1.600000);
    TextDrawAlignment(Stars[8], 1);
    TextDrawColor(Stars[8], -5963521);
    TextDrawSetShadow(Stars[8], 0);
    TextDrawSetOutline(Stars[8], 1);
    TextDrawBackgroundColor(Stars[8], 51);
    TextDrawFont(Stars[8], 2);
    TextDrawSetProportional(Stars[8], 1);

    Stars[9] = TextDrawCreate(584.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[9], 0.449999, 1.600000);
    TextDrawAlignment(Stars[9], 1);
    TextDrawColor(Stars[9], -5963521);
    TextDrawSetShadow(Stars[9], 0);
    TextDrawSetOutline(Stars[9], 1);
    TextDrawBackgroundColor(Stars[9], 51);
    TextDrawFont(Stars[9], 2);
    TextDrawSetProportional(Stars[9], 1);
   
    Stars[10] = TextDrawCreate(595.000000, 100.000000, "]");
    TextDrawLetterSize(Stars[10], 0.449999, 1.600000);
    TextDrawAlignment(Stars[10], 1);
    TextDrawColor(Stars[10], -5963521);
    TextDrawSetShadow(Stars[10], 0);
    TextDrawSetOutline(Stars[10], 1);
    TextDrawBackgroundColor(Stars[10], 51);
    TextDrawFont(Stars[10], 2);
    TextDrawSetProportional(Stars[10], 1);
   
    Stars[11] = TextDrawCreate(502.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[11], 0.449999, 1.600000);
    TextDrawAlignment(Stars[11], 1);
    TextDrawColor(Stars[11], -5963521);
    TextDrawSetShadow(Stars[11], 0);
    TextDrawSetOutline(Stars[11], 1);
    TextDrawBackgroundColor(Stars[11], 51);
    TextDrawFont(Stars[11], 2);
    TextDrawSetProportional(Stars[11], 1);
   
    Stars[12] = TextDrawCreate(513.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[12], 0.449999, 1.600000);
    TextDrawAlignment(Stars[12], 1);
    TextDrawColor(Stars[12], -5963521);
    TextDrawSetShadow(Stars[12], 0);
    TextDrawSetOutline(Stars[12], 1);
    TextDrawBackgroundColor(Stars[12], 51);
    TextDrawFont(Stars[12], 2);
    TextDrawSetProportional(Stars[12], 1);
   
    Stars[13] = TextDrawCreate(524.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[13], 0.449999, 1.600000);
    TextDrawAlignment(Stars[13], 1);
    TextDrawColor(Stars[13], -5963521);
    TextDrawSetShadow(Stars[13], 0);
    TextDrawSetOutline(Stars[13], 1);
    TextDrawBackgroundColor(Stars[13], 51);
    TextDrawFont(Stars[13], 2);
    TextDrawSetProportional(Stars[13], 1);
   
    Stars[14] = TextDrawCreate(535.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[14], 0.449999, 1.600000);
    TextDrawAlignment(Stars[14], 1);
    TextDrawColor(Stars[14], -5963521);
    TextDrawSetShadow(Stars[14], 0);
    TextDrawSetOutline(Stars[14], 1);
    TextDrawBackgroundColor(Stars[14], 51);
    TextDrawFont(Stars[14], 2);
    TextDrawSetProportional(Stars[14], 1);
   
    Stars[15] = TextDrawCreate(546.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[15], 0.449999, 1.600000);
    TextDrawAlignment(Stars[15], 1);
    TextDrawColor(Stars[15], -5963521);
    TextDrawSetShadow(Stars[15], 0);
    TextDrawSetOutline(Stars[15], 1);
    TextDrawBackgroundColor(Stars[15], 51);
    TextDrawFont(Stars[15], 2);
    TextDrawSetProportional(Stars[15], 1);
   
    Stars[16] = TextDrawCreate(557.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[16], 0.449999, 1.600000);
    TextDrawAlignment(Stars[16], 1);
    TextDrawColor(Stars[16], -5963521);
    TextDrawSetShadow(Stars[16], 0);
    TextDrawSetOutline(Stars[16], 1);
    TextDrawBackgroundColor(Stars[16], 51);
    TextDrawFont(Stars[16], 2);
    TextDrawSetProportional(Stars[16], 1);
   
    Stars[17] = TextDrawCreate(568.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[17], 0.449999, 1.600000);
    TextDrawAlignment(Stars[17], 1);
    TextDrawColor(Stars[17], -5963521);
    TextDrawSetShadow(Stars[17], 0);
    TextDrawSetOutline(Stars[17], 1);
    TextDrawBackgroundColor(Stars[17], 51);
    TextDrawFont(Stars[17], 2);
    TextDrawSetProportional(Stars[17], 1);
   
    Stars[18] = TextDrawCreate(579.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[18], 0.449999, 1.600000);
    TextDrawAlignment(Stars[18], 1);
    TextDrawColor(Stars[18], -5963521);
    TextDrawSetShadow(Stars[18], 0);
    TextDrawSetOutline(Stars[18], 1);
    TextDrawBackgroundColor(Stars[18], 51);
    TextDrawFont(Stars[18], 2);
    TextDrawSetProportional(Stars[18], 1);
   
    Stars[19] = TextDrawCreate(590.000000, 112.000000, "]");
    TextDrawLetterSize(Stars[19], 0.449999, 1.600000);
    TextDrawAlignment(Stars[19], 1);
    TextDrawColor(Stars[19], -5963521);
    TextDrawSetShadow(Stars[19], 0);
    TextDrawSetOutline(Stars[19], 1);
    TextDrawBackgroundColor(Stars[19], 51);
    TextDrawFont(Stars[19], 2);
    TextDrawSetProportional(Stars[19], 1);

    TextDrawLetterSize(Stars[19], 0.449999, 1.600000);
    TextDrawAlignment(Stars[19], 1);
    TextDrawColor(Stars[19], -5963521);
    TextDrawSetShadow(Stars[19], 0);
    TextDrawSetOutline(Stars[19], 1);
    TextDrawBackgroundColor(Stars[19], 51);
    TextDrawFont(Stars[19], 2);
    TextDrawSetProportional(Stars[19], 1);
So if you have faced the same issue and you fixed it, please tell me how.


Re: Y_Commands - Scenario - 03.06.2013

Run the crashdetect plugin. There's probably some sort of "silent crash" going on. Otherwise, you could run the performance profiler plugin. It will tell you if there's something being called too much (possibly causing a server hang).


Re: Y_Commands - DeMoX - 03.06.2013

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
Run the crashdetect plugin. There's probably some sort of "silent crash" going on. Otherwise, you could run the performance profiler plugin. It will tell you if there's something being called too much (possibly causing a server hang).
Ok i'll try it, thanks anyway


Re: Y_Commands - DeMoX - 04.06.2013

It didn't work, does anyone have an answer?