argument type mismatch (argument 1)
#1

PHP код:
dcmd_montext(playerid,params[])
    {
      new 
text;
      if(
sscanf(params"s"text))
      {
        
SendClientMessage(playerid,-1,"Utilisation: /montext [text]");
        return 
1;
      }
      
label Create3DTextLabel(text0x008080FF30.040.050.040.00);
      
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
      return 
1;
 } 
Quote:

argument type mismatch (argument 1)

Line :

Quote:

label = Create3DTextLabel(text, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);

Reply
#2

Check this out. You are missing something.
Reply
#3

Quote:

new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

I guess not.
Reply
#4

Try using streamer plugin.

PHP код:
CreateDynamic3DTextLabel(STRINGCOLOURFloat:XFloat:YFloat:ZDrawDistance); 
Reply
#5

The same thing.
Reply
#6

Quote:
Originally Posted by youssefehab500
Посмотреть сообщение
Check this out. You are missing something.
Guess I wasn't clear enough, you should have clicked on my link and compared yours with it.
PHP код:
 label Create3DTextLabel(text0x008080FF30.040.050.040.001); // Turn the last 1 to 0 if you don't want your label to appear from behind objects. 
Reply
#7

You should just write this:

PHP код:
//@top of your script
#if !defined isnull
    #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
dcmd_montext(playerid,params[]) 

    if(
isnull(params)) return SendClientMessage(playerid,-1,"Utilisation: /montext [text]"); 
    new 
Text3D:Create3DTextLabel(params0x008080FF30.040.050.040.00); 
    return 
Attach3DTextLabelToPlayer(xplayerid0.00.00.7),1;
 } 
Reply
#8

Seriously.
pawn Код:
new text[ 128 ];
Reply
#9

Never minde, it works.

Thanks anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)