08.11.2010, 19:16
Hello. I'm trying to make a textdraw stats... So, the code looks like this :
and I've tried to do something like this
btw it's in a filterscript... Anyways, I've got an error :
and an warrning :
...so I'm pretty sure I can't do that like that, so please tell me how can I make this : (
( I've tried to make it understandable, if you don't understand something, just ask... )
Thanks.
Код:
Textdraw3 = TextDrawCreate(2.000000, 144.000000, "Name:"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 1); TextDrawLetterSize(Textdraw3, 0.299998, 1.000000); TextDrawColor(Textdraw3, 16777215); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1);
Код:
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); Textdraw3 = TextDrawCreate(2.000000, 144.000000, "Name: %s", name); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 1); TextDrawLetterSize(Textdraw3, 0.299998, 1.000000); TextDrawColor(Textdraw3, 16777215); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1);
Код:
error 017: undefined symbol "playerid"
Код:
warning 202: number of arguments does not match definition
( I've tried to make it understandable, if you don't understand something, just ask... )
Thanks.