Help | undefined symbol "playerid" - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help | undefined symbol "playerid" (
/showthread.php?tid=265517)
Help | undefined symbol "playerid" -
TeRmi[N]aTor - 01.07.2011
Hello I want to do a textdraw that show how much money i have in the bank ..
I did that every time someone deposits is money in the bank it adds money to the Dini File.
So how do I do that will be 8 numbers in the text draw ?
and i have this errors :
Код HTML:
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8748) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8749) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8750) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8751) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8752) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8753) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8754) : error 017: undefined symbol "playerid"
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\ProDeathMatch.pwn(8755) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
8 Errors.
in this :
Код HTML:
BMoney[playerid] = TextDrawCreate(608.000000, 98.000000, " ");
TextDrawAlignment(BMoney[playerid], 3);
TextDrawBackgroundColor(BMoney[playerid], 255);
TextDrawFont(BMoney[playerid], 3);
TextDrawLetterSize(BMoney[playerid], 0.650000, 2.199999);
TextDrawColor(BMoney[playerid], 43775);
TextDrawSetOutline(BMoney[playerid], 1);
TextDrawSetProportional(BMoney[playerid], 1);
first line - 8748
last line - 8755
can any one help me ?
Re: Help | undefined symbol "playerid" -
iPLEOMAX - 01.07.2011
Where did you add this code? In OnGameModeInit?
Perhaps a callback where playerid is not defined.
Re: Help | undefined symbol "playerid" -
TeRmi[N]aTor - 01.07.2011
yes .. its in OnGameModeInit ...
now its in the OnPlayerConnect...
But Can i make that if its onley 5 numbers its will be like this in the textdraw :
00050000
can you help me ?
Re: Help | undefined symbol "playerid" -
SmileyForCheat - 01.07.2011
Show mE The Include Maybe There's A Disadvantaged
#include blah?
#include blah?
Re: Help | undefined symbol "playerid" -
Vince - 01.07.2011
Quote:
Originally Posted by TeRmi[N]aTor
But Can i make that if its onley 5 numbers its will be like this in the textdraw :
00050000
|
You have a format statement somewhere to set the numbers in the textdraw, right? Then just do:
pawn Код:
format(string, sizeof(string), "%08d", thenumber);
Obviously replacing string and thenumber with your variables.