SA-MP Forums Archive
Textdraws - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraws (/showthread.php?tid=557169)



Textdraws - X|Dragon|X - 12.01.2015

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



Re: Textdraws - Raisingz - 13.01.2015

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

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




Re: Textdraws - X|Dragon|X - 13.01.2015

Yeah thats it


Re: Textdraws - X|Dragon|X - 13.01.2015

bump


Re: Textdraws - HY - 13.01.2015

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



Re: Textdraws - JonathanFeitosa - 13.01.2015

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