SA-MP Forums Archive
[ BUG ] SelectObject - 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: [ BUG ] SelectObject (/showthread.php?tid=329799)



[ BUG ] SelectObject - NetKiel - 30.03.2012

I found two bugs and they should be fixed

1. When you use SelectObject and restart your GM /Server the Cursor won't be hided.
2. When you use SelectObject and use SelectTextdraw you aren't able to click on a Textdraw or an Object


Re: [ BUG ] SelectObject - IstuntmanI - 30.03.2012

Quote:
Originally Posted by NetKiel
Посмотреть сообщение
I found two bugs and they should be fixed

1. When you use SelectObject and restart your GM /Server the Cursor won't be hided.
2. When you use SelectObject and use SelectTextdraw you aren't able to click on a Textdraw or an Object
1. OnGameModeInit:
Код:
for( new i; i < MAX_PLAYERS; i ++ )
{
    CancelEdit( i );
    CancelSelectTextDraw( i );
}
or just press ESC.
2. Before you use SelectObject put
Код:
CancelSelectTextDraw( playerid );
Before you use SelectTextDraw put
Код:
CancelEdit( playerid );
Easily fixable.


AW: [ BUG ] SelectObject - NetKiel - 30.03.2012

Yeah I know, how to fix.

But it shouldn't happen...


Re: [ BUG ] SelectObject - MP2 - 30.03.2012

Yeah this should be fixed. CancelEdit should be called when textdraw selected is enabled and vise-versa.


Re: [ BUG ] SelectObject - Brendan_Thomson - 31.03.2012

Wouldn't it make more sense to put that OnPlayerConnect - not ongamemodeinit...


AW: [ BUG ] SelectObject - NetKiel - 31.03.2012

Found a new Bug.

When you use SelectObject and use SelectTextdraw and press ESC till you get to the menu you won't be abel to use it.