if(clickedid == Text4[playerid]) // Line 12086
bare.pwn(12086) : warning 213: tag mismatch
if(clickedid == Text4) // Line 12086
bare.pwn(12086) : error 033: array must be indexed (variable "Text4")
new PlayerText:Text4[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Text4[playerid] = CreatePlayerTextDraw(playerid, 273.000000, 228.000000, "ld_otb2:butnb");
PlayerTextDrawBackgroundColor(playerid, Text4[playerid], 0);
PlayerTextDrawFont(playerid, Text4[playerid], 4);
PlayerTextDrawLetterSize(playerid, Text4[playerid], 0.400000, -1.000000);
PlayerTextDrawColor(playerid, Text4[playerid], 3315350);
PlayerTextDrawSetOutline(playerid, Text4[playerid], 0);
PlayerTextDrawSetProportional(playerid, Text4[playerid], 1);
PlayerTextDrawSetShadow(playerid, Text4[playerid], 1);
PlayerTextDrawUseBox(playerid, Text4[playerid], 1);
PlayerTextDrawBoxColor(playerid, Text4[playerid], 255);
PlayerTextDrawTextSize(playerid, Text4[playerid], 55.000000, 23.000000);
PlayerTextDrawSetSelectable(playerid, Text4[playerid], 1);
}
The TAG of clickedid (Text does not match the tag of the variable (PlayerText hence the warning. You're using the wrong callback.
|