error 029 eror 017 warning 215 pls help
#1

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!!
Reply
#2

Kardeşim bunu format bağlayıp TextDrawSetString kullanman gerekiyor.
Reply
#3

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
Reply
#4

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ı ?
Reply
#5

Take it to PMs, guys. This section is English only.
Reply
#6

Thanks for the warning, we are sorry.
Reply
#7

Quote:
Originally Posted by sampkinq
Посмотреть сообщение
Nerede kullanmak istiyorsun ?
Spawn olunca mı ?
OnPlayerConnect
Reply
#8

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Take it to PMs, guys. This section is English only.
okey bro ı'm sorry
Reply
#9

anybody knows this error fix ?
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)