public OnPlayerSpawn(playerid)
{
new Text3D:blabla[MAX_PLAYERS];
blabla[playerid] = Create3DTextLabel("Your text here.",0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(blabla[playerid],playerid,0.0, 0.0, 0.7);
return 1;
}
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new Text3D:blabla[MAX_PLAYERS];
blabla[playerid] = Create3DTextLabel("Your text here.",0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(blabla[playerid],playerid,0.0, 0.0, 0.7);
return 1;
}
Alright, so this cmd above here is the one above his head.. right? If it is, thank you verry much for your help. I will test it soon.
|
new Text3D:PrisonNum[MAX_PLAYERS]; PrisonNum[playerid] = Create3DTextLabel("Prison Number %d",Player[playerid][PhoneN],0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(PrisonNum[playerid],playerid,0.0, 0.0, 0.7);
I tried to add the phonenumber that I'm using as a prison number but I ended up with this warning;
C:\Users\mma\Desktop\Los Santos Prison Roleplay\gamemodes\lspr.pwn(9709) : warning 213: tag mismatch This is the function; Код:
new Text3D:PrisonNum[MAX_PLAYERS]; PrisonNum[playerid] = Create3DTextLabel("Prison Number %d",Player[playerid][PhoneN],0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(PrisonNum[playerid],playerid,0.0, 0.0, 0.7); |
new
Text3D:PrisonNum[MAX_PLAYERS];
string[32];
format(string, sizoef(string), "Prison number: %d", Player[playerid][PhoneN]);
PrisonNum[playerid] = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, 0.0, 0.0, 0.7);
new Text3D:PrisonNum[MAX_PLAYERS]; new string[32]; format(string, sizoef(string), "Prison Number: %d", Player[playerid][PhoneN]); PrisonNum[playerid] = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, 0.0, 0.0, 0.7);
new
Text3D:PrisonNum[MAX_PLAYERS];
string[32];
format(string, sizeof(string), "Prison number: %d", Player[playerid][PhoneN]);
PrisonNum[playerid] = Create3DTextLabel(string, 0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(PrisonNum[playerid], playerid, 0.0, 0.0, 0.7);