Help | undefined symbol "playerid"
#1

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

Where did you add this code? In OnGameModeInit?
Perhaps a callback where playerid is not defined.
Reply
#3

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

Show mE The Include Maybe There's A Disadvantaged
#include blah?
#include blah?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)