SA-MP Forums Archive
Text Draw Error - 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: Text Draw Error (/showthread.php?tid=370369)



Text Draw Error - Ben_Hatfield - 19.08.2012

pawn Код:
websitetextdraw = TextDrawCreate(212 ,459 , "www.premiumliferoleplay.co.nr");
    TextDrawFont(websitetextdraw , 1);
    TextDrawLetterSize(websitetextdraw , .5, 3.5)
    TextDrawColor(websitetextdraw , 0xffffffFF);
    TextDrawSetOutline(websitetextdraw , false);
    TextDrawSetProportional(websitetextdraw , true);
    TextDrawSetShadow(websitetextdraw , 1);
errors

Код:
error 001: expected token: "-identifier-", but found "-integer value-"
\gamemodes\larp.pwn(20242) : warning 215: expression has no effect
\gamemodes\larp.pwn(20242) : warning 215: expression has no effect
\gamemodes\larp.pwn(20242) : error 001: expected token: ";", but found ")"
\gamemodes\larp.pwn(20242) : error 029: invalid expression, assumed zero
\gamemodes\larp.pwn(20242) : fatal error 107: too many error messages on one line
?


Re: Text Draw Error - CROSS_Hunter - 19.08.2012

here you go
pawn Код:
websitetextdraw = TextDrawCreate(212 ,459 , "www.premiumliferoleplay.co.nr");
    TextDrawFont(websitetextdraw , 1);
    TextDrawLetterSize(websitetextdraw , .5, 3.5);
    TextDrawColor(websitetextdraw , 0xffffffFF);
    TextDrawSetOutline(websitetextdraw , false);
    TextDrawSetProportional(websitetextdraw , true);
    TextDrawSetShadow(websitetextdraw , 1);



Re: Text Draw Error - Ben_Hatfield - 19.08.2012

Quote:
Originally Posted by CROSS_Hunter
Посмотреть сообщение
here you go
pawn Код:
websitetextdraw = TextDrawCreate(212 ,459 , "www.premiumliferoleplay.co.nr");
    TextDrawFont(websitetextdraw , 1);
    TextDrawLetterSize(websitetextdraw , .5, 3.5);
    TextDrawColor(websitetextdraw , 0xffffffFF);
    TextDrawSetOutline(websitetextdraw , false);
    TextDrawSetProportional(websitetextdraw , true);
    TextDrawSetShadow(websitetextdraw , 1);
didnt work, still get the game errors


Re: Text Draw Error - Roko_foko - 19.08.2012

Код:
websitetextdraw = TextDrawCreate(212 ,459 , "www.premiumliferoleplay.co.nr");
TextDrawFont(websitetextdraw , 1);
TextDrawLetterSize(websitetextdraw , ???????????????????????.5, 3.5);
TextDrawColor(websitetextdraw , 0xffffffFF);
TextDrawSetOutline(websitetextdraw , false);
TextDrawSetProportional(websitetextdraw , true);
TextDrawSetShadow(websitetextdraw , 1);
Hope this will help


Re: Text Draw Error - Ben_Hatfield - 19.08.2012

Код:
\gamemodes\larp.pwn(20240) : warning 217: loose indentation
\gamemodes\larp.pwn(20241) : warning 217: loose indentation
\gamemodes\larp.pwn(20242) : error 029: invalid expression, assumed zero
\gamemodes\larp.pwn(20242 -- 20243) : error 001: expected token: ":", but found ";"
\gamemodes\larp.pwn(20242 -- 20244) : error 001: expected token: ":", but found ";"
\gamemodes\larp.pwn(20242 -- 20244) : fatal error 107: too many error messages on one line



Re: Text Draw Error - Roko_foko - 19.08.2012

Quote:
Originally Posted by Ben_Hatfield
Посмотреть сообщение
Код:
\gamemodes\larp.pwn(20240) : warning 217: loose indentation
\gamemodes\larp.pwn(20241) : warning 217: loose indentation
\gamemodes\larp.pwn(20242) : error 029: invalid expression, assumed zero
\gamemodes\larp.pwn(20242 -- 20243) : error 001: expected token: ":", but found ";"
\gamemodes\larp.pwn(20242 -- 20244) : error 001: expected token: ":", but found ";"
\gamemodes\larp.pwn(20242 -- 20244) : fatal error 107: too many error messages on one line
Why did you just copy paste my code? There is missing something, can't you see? Just replace all this with a normal value.


Re: Text Draw Error - Ben_Hatfield - 19.08.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
Why did you just copy paste my code? There is missing something, can't you see? Just replace all this with a normal value.
haha, sorry man, i didnt even read it, i got it to work. thanks


Re: Text Draw Error - Ben_Hatfield - 19.08.2012

but now it doesnt show up at all in game


Re: Text Draw Error - Roko_foko - 19.08.2012

TextDrawShowForPlayer is the fucntion you are looking for