new Text3Dlayertextid[MAX_PLAYERS]; |
command(playerlabel, playerid, params[]) { #pragma unused params new Float:X, Float:Y, Float:Z; if(Player[playerid][AdminLevel] >= 4) { GetPlayerPos(playerid, X, Y, Z); playertextid[playerid] = CreatePlayer3DTextLabel(playerid, "a", WHITE, X, Y, Z, 40.0); // problem here Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7); } return 1; } |
(18264) : warning 213: tag mismatch |
command(playerlabel, playerid, params[])
{
#pragma unused params
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
if(Player[playerid][AdminLevel] >= 4)
{
GetPlayerPos(playerid, X, Y, Z);
playertextid = CreatePlayer3DTextLabel(playerid, "a", WHITE, X, Y, Z, 40.0);
Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
}
C:\Users\ant\Desktop\sampsmallproject\gamemodes\Vo rtexRoleplay.pwn(18267) : error 028: invalid subscript (not an array or too many subscripts): "playertextid" C:\Users\ant\Desktop\sampsmallproject\gamemodes\Vo rtexRoleplay.pwn(18267) : warning 215: expression has no effect C:\Users\ant\Desktop\sampsmallproject\gamemodes\Vo rtexRoleplay.pwn(18267) : error 001: expected token: ";", but found "]" C:\Users\ant\Desktop\sampsmallproject\gamemodes\Vo rtexRoleplay.pwn(18267) : error 029: invalid expression, assumed zero C:\Users\ant\Desktop\sampsmallproject\gamemodes\Vo rtexRoleplay.pwn(18267) : fatal error 107: too many error messages on one line |
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);
new PlayerText3Dlayertextid; |
command(playerlabel, playerid, params[])
{
new Text3D:label[MAX_PLAYERS];
new Float:X, Float:Y, Float:Z;
if(Player[playerid][AdminLevel] >= 4)
{
GetPlayerPos(playerid, X, Y, Z);
label[playerid] = Create3DTextLabel(playerid, "a", WHITE, X, Y, Z, 40.0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
command(playerlabel, playerid, params[])
{
new Text3D:label[MAX_PLAYERS], Float:X, Float:Y, Float:Z;
if(Player[playerid][AdminLevel] >= 4) return 0;
GetPlayerPos(playerid, X, Y, Z);
label[playerid] = Create3DTextLabel("a",WHITE,X, Y, Z,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
new PlayerText3D:playertextid[MAX_PLAYERS];