Switch in OnPlayerClickTextDraw (Id of Textdraw)
#1

Hello,

I was wondering, is there a way to get the actual value/ID of a Textdraw?

I have got a lot of clickable textdraws and I want to use a switch-function instead of 'if-statements' to scroll through the 'clickedid's'. But using this

pawn Код:
switch(clickedid)   (or (Text:clickedid) )
{
    case Textdraw16:     (or case Text:Textdraw16: )
    {
       //
    }
    case Textdraw20:
    {
       //
    }
}
Gives me 'must be constant expression; assumed zero' errors.

Anyone knows how to get the actual ID of a textdraw?
Reply
#2

Meybe

pawn Код:
switch(clickedid)
{
     case Textdraw16:
     {
     }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)