04.02.2015, 08:37
(
Last edited by Johnny_Ionut; 04/02/2015 at 09:47 AM.
)
At the beginning of the script
At OnGamemodeInit
On enter text in TextDraw
At compile receive message as NOUJ be indexed (OnGamemodeInit). What do i do?
pawn Code:
new NOUJ[32];
At OnGamemodeInit
pawn Code:
public OnGameModeInit()
if(fexist("NOUJ.cfg"))
{
NOUJ = dini_Int("NOUJ.cfg", "Connections");
printf("file \"NOUJ.txt\" located, variable NOUJ loaded (%s visitors)", NOUJ);
}
On enter text in TextDraw
pawn Code:
forward text(playerid);
public text(playerid)
{
// same thing, so they won't see too much different.
format(textdrawstring,sizeof(textdrawstring),"~w~Newest Account:~y~%s", NOUJ);
TextDrawSetString(Textdraw2, textdrawstring);
}
At compile receive message as NOUJ be indexed (OnGamemodeInit). What do i do?