error 029 eror 017 warning 215 pls help -
lostmode - 20.11.2016
I Get some Errors:
error 017: undefined symbol "targetid"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Textdraw31 = TextDrawCreate(595.833, 429.333, "Isim: %s - Level: %d - Telefon Numarasi: - Oynama Saati: %d - Yas: %d - Cinsiyet: %s"), GetPlayerNameEx(targetid), level, pnumber, phours, age, sext);
TextDrawLetterSize(Textdraw31, 0.411, 1.620);
TextDrawTextSize(Textdraw31, 806.666, -227.629);
TextDrawAlignment(Textdraw31, 3);
TextDrawColor(Textdraw31, -135);
TextDrawBackgroundColor(Textdraw31, 51);
TextDrawFont(Textdraw31, 2);
TextDrawSetProportional(Textdraw31, 1);
This İs The Error location
How Can I Fix These Pls Help !11!!
Re: error 029 eror 017 warning 215 pls help -
sampkinq - 20.11.2016
Kardeşim bunu format bağlayıp TextDrawSetString kullanman gerekiyor.
Re: error 029 eror 017 warning 215 pls help -
lostmode - 20.11.2016
Quote:
Originally Posted by sampkinq
Kardeşim bunu format bağlayıp TextDrawSetString kullanman gerekiyor.
|
Hocam Atabilirmisin TextDrawSetString kullanmayı bilmiyorum Format Bağlamayıda bilmiyorum modda var ama .d
Re: error 029 eror 017 warning 215 pls help -
sampkinq - 20.11.2016
Quote:
Originally Posted by lostmode
Hocam Atabilirmisin TextDrawSetString kullanmayı bilmiyorum Format Bağlamayıda bilmiyorum modda var ama .d
|
Nerede kullanmak istiyorsun ?
Spawn olunca mı ?
Re: error 029 eror 017 warning 215 pls help -
AndySedeyn - 20.11.2016
Take it to PMs, guys. This section is English only.
Re: error 029 eror 017 warning 215 pls help -
sampkinq - 20.11.2016
Thanks for the warning, we are sorry.
Re: error 029 eror 017 warning 215 pls help -
lostmode - 20.11.2016
Quote:
Originally Posted by sampkinq
Nerede kullanmak istiyorsun ?
Spawn olunca mı ?
|
OnPlayerConnect
Re: error 029 eror 017 warning 215 pls help -
lostmode - 20.11.2016
Quote:
Originally Posted by AndySedeyn
Take it to PMs, guys. This section is English only.
|
okey bro ı'm sorry
Re: error 029 eror 017 warning 215 pls help -
lostmode - 20.11.2016
anybody knows this error fix ?
Re: error 029 eror 017 warning 215 pls help -
Konstantinos - 20.11.2016
TextDrawCreate doesn't accept arguments to format the text, you'll need to do that yourself:
pawn Код:
new td_text[size_here];
format(td_text, sizeof td_text, "...", ...);
Textdraw31 = TextDrawCreate(595.833, 429.333, td_text);
and about the other error "targetid" is undefined. Either you meant to say "playerid" or depending on where you create the textdraws, it may need a loop if it is in OnGameModeInit/OnFilterScriptInit for example.
Just a side note: use
player-textdraws.