Textlabel
#1

Getting argument type mismatch here:

pawn Код:
gEntranceData[gTotalEntrances][E_ENTRANCE_OUT_LBL] = CreateDynamic3DTextLabel(name, "Press ~k~~VEHICLE_ENTER_EXIT~ to enter/exit", 0xFFD9D7FF, out_x, out_y, out_z - 0.5, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, out_v, out_i);
Name is referred to entrance name. I wanna make it show: Entrance Name - Press KEY to enter/exit but i'm getting this.
Reply
#2

Код:
CreateDynamic3DTextLabel(name, "Press ~k~~VEHICLE_ENTER_EXIT~ to enter/exit", 0xFFD9D7FF, out_x, out_y, out_z - 0.5, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, out_v, out_i);
This?
Reply
#3

can somebody help me on my topic pls
Reply
#4

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Код:
CreateDynamic3DTextLabel(name, "Press ~k~~VEHICLE_ENTER_EXIT~ to enter/exit", 0xFFD9D7FF, out_x, out_y, out_z - 0.5, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, out_v, out_i);
This?
"name" is referred to entrance name.
Reply
#5

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
"name" is referred to entrance name.
That isn't how it works.

PHP код:
CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_3D_TEXT_LABEL_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1priority 0
Reply
#6

PHP код:
gEntranceData[gTotalEntrances][E_ENTRANCE_OUT_LBL] = CreateDynamic3DTextLabel(""name" Press ~k~~VEHICLE_ENTER_EXIT~ to enter/exit"0xFFD9D7FFout_xout_yout_z 0.510.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0out_vout_i); 
Reply
#7

Quote:
Originally Posted by GangstaSunny.
Посмотреть сообщение
PHP код:
gEntranceData[gTotalEntrances][E_ENTRANCE_OUT_LBL] = CreateDynamic3DTextLabel(""name" Press ~k~~VEHICLE_ENTER_EXIT~ to enter/exit"0xFFD9D7FFout_xout_yout_z 0.510.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0out_vout_i); 
Expression has no effect.
Reply
#8

add this ,
after "name"
Reply
#9

Already tried doesn't work. I guess i have to create a string and format it using CreateDynamic3dTextLabel, but how?
Reply
#10

pawn Код:
new string[128];
    format(string, sizeof(string), ""SAMP_BLUE"%s "WHITE"- Press "SAMP_BLUE"~k~~VEHICLE_ENTER_EXIT~ "WHITE"to enter/exit", name);
    gEntranceData[gTotalEntrances][E_ENTRANCE_OUT_LBL] = CreateDynamic3DTextLabel(string, 0xFFD9D7FF, out_x, out_y, out_z - 0.5, 10.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, out_v, out_i);
Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)