PlayerText:CreateBGSelection(playerid, Float:X - 5.0, Float:Y - 36.0, Float:Xx - 1.0, Float:Yy - 1.0)
{
return 1;
}
LinexSelection.pwn(4) : error 001: expected token: ")", but found "-"
LinexSelection.pwn(4) : warning 215: expression has no effect
LinexSelection.pwn(4) : error 017: undefined symbol "Y"
LinexSelection.pwn(4) : error 010: invalid function or declaration
LinexSelection.pwn(4 -- 6) : fatal error 107: too many error messages on one line
new PlayerText:TextDrawA[MAX_PLAYERS];
PlayerText:CreateBGSelection(playerid,Float:X,Float:Y,Float:X2,Float:Y2/*, Float:X - 5.0, Float:Y - 36.0, Float:X2 - 1.0, Float:Y2 - 1.0*/)
{
X -= 5.0;
Y -= 36.0;
X2 -= 1.0;
Y2 -= 1.0;
https://sampwiki.blast.hk/wiki/Textdraw
Para criar a variбvel, sу й preciso o essencial: PHP Code:
|
PlayerText:CreateBGSelection(playerid, Float:X -= 5.0, Float:Y -= 36.0, Float:Xx -= 1.0, Float:Yy -= 1.0) { return 1; }
(4) : error 001: expected token: ")", but found "-="
(4) : error 010: invalid function or declaration
(4 -- 6) : error 010: invalid function or declaration
(4 -- 6) : fatal error 107: too many error messages on one line
PlayerText:CreateBGSelection(playerid, Float:X = -5.0, Float:Y = -36.0, Float:Xx = -1.0, Float:Yy = -1.0) { printf("%f, %f, %f, %f", X, Y, Xx, Yy); }
Code:
PlayerText:CreateBGSelection(playerid, Float:X = -5.0, Float:Y = -36.0, Float:Xx = -1.0, Float:Yy = -1.0) { printf("%f, %f, %f, %f", X, Y, Xx, Yy); } |