SA-MP Forums Archive
[rep+] conflicting textdraws :( please help - 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: [rep+] conflicting textdraws :( please help (/showthread.php?tid=320765)



[rep+] conflicting textdraws :( please help - niels44 - 24.02.2012

hey guys,

so i have a lot of td's in my server like couple of 5 for telling how to speedboost etc. and a speedo and a randommessages td.
but now when i do a GMX then when player connects again then the 5 textdraws with speedboost etc are gone and the random msgs are standing there but they should be under the minimap... and the speedo is also gone for a half piece...

but when i do console restart then it works.. but i want to can use gmx also... can pls someone tell me HOW to fix this stupid annoying bugg?

greets niels


Re: [rep+] conflicting textdraws :( please help - brett7 - 24.02.2012

make sure when the game mode ends, that all textdraws are destroyed.


Re: [rep+] conflicting textdraws :( please help - Twisted_Insane - 24.02.2012

Yes, you sure you destroy or hide each 5 of them?


Re: [rep+] conflicting textdraws :( please help - niels44 - 24.02.2012

yep all the 5 are hided AND destroyed
pawn Код:
public OnGameModeExit()
{
    TextDrawHideForAll(Capstext);
    TextDrawDestroy(Capstext);
    TextDrawHideForAll(Wtext);
    TextDrawDestroy(Wtext);
    TextDrawHideForAll(cartext);
    TextDrawDestroy(cartext);
    TextDrawHideForAll(tcartext);
    TextDrawDestroy(tcartext);
    TextDrawHideForAll(fliptext);
    TextDrawDestroy(fliptext);
    TextDrawHideForAll(sptext);
    TextDrawDestroy(sptext);
    TextDrawHideForAll(jumptext);
    TextDrawDestroy(jumptext);
    TextDrawHideForAll(vtext);
    TextDrawDestroy(vtext);
    return 1;
}
and about the speedo and randommsg that ones are in FS so i think they also willk get destroyed...


Re: [rep+] conflicting textdraws :( please help - niels44 - 25.02.2012

any other one knows how to fix this?


Re: [rep+] conflicting textdraws :( please help - emokidx - 25.02.2012

try putting the destroys under OnPlayerDisconnect?


Re: [rep+] conflicting textdraws :( please help - niels44 - 25.02.2012

hmm ok i'll try it

EDIT: nopes doesnt works


Re: [rep+] conflicting textdraws :( please help - niels44 - 25.02.2012

anyone? pls


Re: [rep+] conflicting textdraws :( please help - Twisted_Insane - 25.02.2012

Hmm, take a look at this topic here:

https://sampforum.blast.hk/showthread.php?tid=314350


Re: [rep+] conflicting textdraws :( please help - niels44 - 25.02.2012

hmm yeah thnx wait i edited it now and now testing wait sec if it works you get REP+ and lots of thnx DDDD

EDIT: hmm yeah it is working.. though my speedo and random msgs are still not working correctly you get REP+ it worked but i didnt changed it on other yet so thnx!!

hmm somehow i cant give you rep anyways THNX ALOT!