SA-MP Forums Archive
error 029 eror 017 warning 215 pls help - 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: error 029 eror 017 warning 215 pls help (/showthread.php?tid=622235)



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.