CMD:ktext(playerid, params[])
{
new strtext[999],text[50];
if(sscanf(params,"s[50]",text)) return SendClientMessage(playerid, -1, "Usage:/ktext [Text]");
format(strtext, sizeof(strtext), ""COL_RED"%s", text);
KLBL[playerid] = Create3DTextLabel(strtext,0xFFF000FF,30.0,40.0,50.0,40.0,0);//In This Line
Attach3DTextLabelToPlayer(KLBL[playerid], playerid, 0.0, 0.0, 0.3);//In This Line
return 1;
}
KLBL[playerid] = Create3DTextLabel(strtext,0xFFF000FF,30.0,40.0,50.0,40.0,0,0);
Attach3DTextLabelToPlayer(KLBL[playerid],0.0, 0.0, 0.3);
new Text3D:KLBL[MAX_PLAYERS];
make sure that you defined KLBL variable beside Text3D tag, means it gonna be:
Код:
new Text3D:KLBL[MAX_PLAYERS]; |