player textdraw at ongamemodeinit?
#1

Hey all i am trying to create a player textdraw at ongamemodeinit and it is giving me errors that "playerid" is undefined please help.
This is my textdraw:
pawn Код:
Textdraw0                       =CreatePlayerTextDraw(playerid, 270.000000, 345.000000, "RobberyTimeLeft");
PlayerTextDrawBackgroundColor   (playerid, Textdraw0, 255);
PlayerTextDrawFont              (playerid, Textdraw0, 0);
PlayerTextDrawLetterSize        (playerid, Textdraw0, 0.500000, 1.000000);
PlayerTextDrawColor             (playerid, Textdraw0, -1);
PlayerTextDrawSetOutline        (playerid, Textdraw0, 1);
PlayerTextDrawSetProportional   (playerid, Textdraw0, 1);
bar[playerid] = CreateProgressBar(262.00, 353.00, 123.50, 7.19, -16776961, 25.0);
Reply
#2

Show us what you have right now on your Callbacks
Reply
#3

Well its too long to show.
Reply
#4

You cannot use 'playerid' under onGameModeInit, try putting it under OnPlayerConnect
Reply
#5

okey! thanks
Reply


Forum Jump:


Users browsing this thread: