Textdraws
#1

There is something wrong with those codings, but i cant seem to find them.

pawn Код:
FemaleText[playerid] = CreatePlayerTextDraw(playerid, 338.500000, 247.166641, "FEMALE");
    PlayerTextDrawLetterSize(playerid, FemaleText[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, FemaleText[playerid], 1);
    PlayerTextDrawColor(playerid, FemaleText[playerid], -1);
    PlayerTextDrawSetShadow(playerid, FemaleText[playerid], 0);
    PlayerTextDrawSetOutline(playerid, FemaleText[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, FemaleText[playerid], 255);
    PlayerTextDrawFont(playerid, FemaleText[playerid], 2);
    PlayerTextDrawSetProportional(playerid, FemaleText[playerid], 1);
    PlayerTextDrawSetShadow(playerid, FemaleText[playerid], 0);
    PlayerTextDrawSetSelectable(playerid, FemaleText[playerid], true);

    MaleText[playerid] = CreatePlayerTextDraw(playerid, 239.500000, 248.333251, "MALE");
    PlayerTextDrawLetterSize(playerid, MaleText[playerid], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, MaleText[playerid], 1);
    PlayerTextDrawColor(playerid, MaleText[playerid]], -1);
    PlayerTextDrawSetShadow(playerid, MaleText[playerid], 0);
    PlayerTextDrawSetOutline(playerid, MaleText[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, MaleText[playerid], 255);
    PlayerTextDrawFont(playerid, MaleText[playerid], 2);
    PlayerTextDrawSetProportional(playerid, MaleText[playerid], 1);
    PlayerTextDrawSetShadow(playerid, MaleText[playerid], 0);
    PlayerTextDrawSetSelectable(playerid, MaleText[playerid], true);
Those are the errors, Help please.

Код:
C:\Users\Medo\Desktop\HEP-RP\gamemodes\new.pwn(172) : error 028: invalid subscript (not an array or too many subscripts): "FemaleText"
C:\Users\Medo\Desktop\HEP-RP\gamemodes\new.pwn(172) : warning 215: expression has no effect
C:\Users\Medo\Desktop\HEP-RP\gamemodes\new.pwn(172) : error 001: expected token: ";", but found "]"
C:\Users\Medo\Desktop\HEP-RP\gamemodes\new.pwn(172) : error 029: invalid expression, assumed zero
C:\Users\Medo\Desktop\HEP-RP\gamemodes\new.pwn(172) : fatal error 107: too many error messages on one line
Reply
#2

Show the declaration of FemaleText, what line is 172 ?
Is it this one?
Quote:

FemaleText[playerid] = CreatePlayerTextDraw(playerid, 338.500000, 247.166641, "FEMALE");

Reply
#3

Yeah thats it
Reply
#4

bump
Reply
#5

pawn Код:
new PlayerText:FemaleText[MAX_PLAYERS];
Reply
#6

pawn Код:
new PlayerText:FemaleText[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)