CreatePokerGUI(playerid)
{
PlayerPokerUI[playerid][0] = CreatePlayerTextDraw(playerid, 390.000000, 263.000000, " ");
PlayerTextDrawAlignment(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawBackgroundColor(playerid, PlayerPokerUI[playerid][0], 100);
PlayerTextDrawFont(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawLetterSize(playerid, PlayerPokerUI[playerid][0], 0.159998, 1.200001);
PlayerTextDrawColor(playerid, PlayerPokerUI[playerid][0], -1);
PlayerTextDrawSetOutline(playerid, PlayerPokerUI[playerid][0], 0);
PlayerTextDrawSetProportional(playerid, PlayerPokerUI[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, PlayerPokerUI[playerid][0], 0);
./includes/textdraws.pwn(4) : error 029: invalid expression, assumed zero
./includes/textdraws.pwn(4) : warning 215: expression has no effect ./includes/textdraws.pwn(4) : error 001: expected token: ";", but found "]" ./includes/textdraws.pwn(4) : error 029: invalid expression, assumed zero ./includes/textdraws.pwn(4) : fatal error 107: too many error messages on one line How to fix this? PHP Code:
|
CreatePokerGUI(playerid)
{
PlayerPokerUI[playerid][0] = CreatePlayerTextDraw(playerid, 390.000000, 263.000000, " "); // this is line 4 buddy
PlayerTextDrawAlignment(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawBackgroundColor(playerid, PlayerPokerUI[playerid][0], 100);
PlayerTextDrawFont(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawLetterSize(playerid, PlayerPokerUI[playerid][0], 0.159998, 1.200001);
PlayerTextDrawColor(playerid, PlayerPokerUI[playerid][0], -1);
PlayerTextDrawSetOutline(playerid, PlayerPokerUI[playerid][0], 0);
PlayerTextDrawSetProportional(playerid, PlayerPokerUI[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, PlayerPokerUI[playerid][0], 0);
CreatePokerGUI(playerid)
{
PlayerPokerUI[playerid][0] = CreatePlayerTextDraw(playerid, 390.000000, 263.000000, " "); //<<< this is line error
PlayerTextDrawAlignment(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawBackgroundColor(playerid, PlayerPokerUI[playerid][0], 100);
PlayerTextDrawFont(playerid, PlayerPokerUI[playerid][0], 2);
PlayerTextDrawLetterSize(playerid, PlayerPokerUI[playerid][0], 0.159998, 1.200001);
PlayerTextDrawColor(playerid, PlayerPokerUI[playerid][0], -1);
PlayerTextDrawSetOutline(playerid, PlayerPokerUI[playerid][0], 0);
PlayerTextDrawSetProportional(playerid, PlayerPokerUI[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, PlayerPokerUI[playerid][0], 0);
Where do you define this: "PlayerPokerUI"
Ex. new PlayerPokerUI[MAX_PLAYERS][#]; |
Did I answer you question? I was asking you to show us the code... XD
|
enum pkrInfo
{
pkrActive,
pkrPlaced,
pkrObjectID,
pkrMiscObjectID[MAX_POKERTABLEMISCOBJS],
Text3D:pkrText3DID,
Float:pkrX,
Float:pkrY,
Float:pkrZ,
Float:pkrRX,
Float:pkrRY,
Float:pkrRZ,
pkrVW,
pkrInt,
pkrPlayers,
pkrActivePlayers,
pkrActiveHands,
pkrSlot[6],
pkrPass[32],
pkrLimit,
pkrPulseTimer,
pkrBuyInMax,
pkrBuyInMin,
pkrBlind,
pkrTinkerLiveTime,
pkrDelay,
pkrSetDelay,
pkrPos,
pkrRotations,
pkrSlotRotations,
pkrActivePlayerID,
pkrActivePlayerSlot,
pkrRound,
pkrStage,
pkrActiveBet,
pkrDeck[52],
pkrCCards[5],
pkrPot,
pkrWinners,
pkrWinnerID,
};
new PlayerTextDraw: PlayerPokerUI[MAX_PLAYERS][255];
Did I answer you question? I was asking you to show us the code... XD
|