dcmd_montext(playerid,params[])
{
new text;
if(sscanf(params, "s", text))
{
SendClientMessage(playerid,-1,"Utilisation: /montext [text]");
return 1;
}
label = Create3DTextLabel(text, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
return 1;
}
argument type mismatch (argument 1) |
label = Create3DTextLabel(text, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); |
new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); |
CreateDynamic3DTextLabel(STRING, COLOUR, Float:X, Float:Y, Float:Z, DrawDistance);
Check this out. You are missing something.
|
label = Create3DTextLabel(text, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 1); // Turn the last 1 to 0 if you don't want your label to appear from behind objects.
//@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:x = Create3DTextLabel(params, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
return Attach3DTextLabelToPlayer(x, playerid, 0.0, 0.0, 0.7),1;
}
new text[ 128 ];