Stats in textdraws - targetid 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: Stats in textdraws - targetid help (
/showthread.php?tid=363512)
Re: Stats in textdraws - targetid help -
Saddin - 28.07.2012
What about creating textdraws ?
Re: Stats in textdraws - targetid help -
Roko_foko - 28.07.2012
Quote:
Originally Posted by Saddin
What about creating textdraws ?
|
Oh yea, forgot.
pawn Код:
//OnPlayerConnect(playerid...
StatsTacke[playerid]=CreatePlayerTextDraw(playerid,Float:x,Float:y,text[]);
//and others same as this...
StatsLevel[playerid]=CreatePlayerTextDraw(playerid,Float:x,Float:y,text[]);
//etc.
Float: x,y, text[] replace with coordinates/text u used for them as normal TextDraws(I believe they are created in OnGameModeInit)
Re: Stats in textdraws - targetid help -
Saddin - 28.07.2012
Oh God, I'm getting this errors:
Код:
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17154) : warning 215: expression has no effect
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17155) : error 017: undefined symbol "strl"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17157) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17158) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17161) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17162) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17167) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17168) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17171) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17172) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17175) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17176) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17179) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17180) : error 017: undefined symbol "PlayerTextDrawShow"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17183) : error 017: undefined symbol "PlayerTextDrawSetString"
C:\Documents and Settings\USER\Desktop\WOB\gamemodes\balkanmania.pwn(17184) : error 017: undefined symbol "PlayerTextDrawShow"
Re: Stats in textdraws - targetid help -
Saddin - 28.07.2012
It says: Undefined CreatePlayerTextdraw, ... and others PlayerTextDrawShow, please help.
Re: Stats in textdraws - targetid help -
Roko_foko - 28.07.2012
strl change to str.
CreatePlayerTextdraw, PlayerTextDrawSetString, PlayerTextDrawShow are native SA-MP 0.3e functions. Are you sure you have SA-MP 0.3e?
Re: Stats in textdraws - targetid help -
Saddin - 28.07.2012
Yes, I'm sure.
Re: Stats in textdraws - targetid help -
Saddin - 28.07.2012
I change some of includes and other files to newest 0.3e and now getting this erros:
Код:
: warning 219: local variable "count" shadows a variable at a preceding level
: error 035: argument type mismatch (argument 3)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 3)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 3)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 1)
: error 035: argument type mismatch (argument 3)
: error 035: argument type mismatch (argument 1)