too many error messages on one line
#1

./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(playerid390.000000263.000000" "); 
    
PlayerTextDrawAlignment(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridPlayerPokerUI[playerid][0], 100);
    
PlayerTextDrawFont(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawLetterSize(playeridPlayerPokerUI[playerid][0], 0.1599981.200001);
    
PlayerTextDrawColor(playeridPlayerPokerUI[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridPlayerPokerUI[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridPlayerPokerUI[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridPlayerPokerUI[playerid][0], 0); 
Reply
#2

Don't open new topics about the same things. You're making a mess!
Reply
#3

Quote:
Originally Posted by Zyova
View Post
./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(playerid390.000000263.000000" "); 
    
PlayerTextDrawAlignment(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridPlayerPokerUI[playerid][0], 100);
    
PlayerTextDrawFont(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawLetterSize(playeridPlayerPokerUI[playerid][0], 0.1599981.200001);
    
PlayerTextDrawColor(playeridPlayerPokerUI[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridPlayerPokerUI[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridPlayerPokerUI[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridPlayerPokerUI[playerid][0], 0); 
Send Line 4
Reply
#4

PHP Code:
CreatePokerGUI(playerid)
{
    
PlayerPokerUI[playerid][0] = CreatePlayerTextDraw(playerid390.000000263.000000" "); // this is line 4 buddy
    
PlayerTextDrawAlignment(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridPlayerPokerUI[playerid][0], 100);
    
PlayerTextDrawFont(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawLetterSize(playeridPlayerPokerUI[playerid][0], 0.1599981.200001);
    
PlayerTextDrawColor(playeridPlayerPokerUI[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridPlayerPokerUI[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridPlayerPokerUI[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridPlayerPokerUI[playerid][0], 0); 
Reply
#5

Quote:
Originally Posted by marshallbrown
View Post
Send Line 4
Now the error is this
./includes/textdraws.pwn(5) : error 028: invalid subscript (not an array or too many subscripts): "PlayerPokerUI"
./includes/textdraws.pwn(5) : warning 215: expression has no effect
./includes/textdraws.pwn(5) : error 001: expected token: ";", but found "]"
./includes/textdraws.pwn(5) : error 029: invalid expression, assumed zero
./includes/textdraws.pwn(5) : fatal error 107: too many error messages on one line



PHP Code:
CreatePokerGUI(playerid)
{
    
PlayerPokerUI[playerid][0] = CreatePlayerTextDraw(playerid390.000000263.000000" "); //<<< this is line error
    
PlayerTextDrawAlignment(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawBackgroundColor(playeridPlayerPokerUI[playerid][0], 100);
    
PlayerTextDrawFont(playeridPlayerPokerUI[playerid][0], 2);
    
PlayerTextDrawLetterSize(playeridPlayerPokerUI[playerid][0], 0.1599981.200001);
    
PlayerTextDrawColor(playeridPlayerPokerUI[playerid][0], -1);
    
PlayerTextDrawSetOutline(playeridPlayerPokerUI[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridPlayerPokerUI[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridPlayerPokerUI[playerid][0], 0); 
Reply
#6

Where do you define this: "PlayerPokerUI"

Ex. new PlayerPokerUI[MAX_PLAYERS][#];
Reply
#7

Quote:
Originally Posted by Crayder
View Post
Where do you define this: "PlayerPokerUI"

Ex. new PlayerPokerUI[MAX_PLAYERS][#];
Thax Buddy!
Reply
#8

Did I answer you question? I was asking you to show us the code... XD
Reply
#9

Quote:
Originally Posted by Crayder
View Post
Did I answer you question? I was asking you to show us the code... XD
My bad

PHP Code:
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 
PlayerTextDrawPlayerPokerUI[MAX_PLAYERS][255]; 
Reply
#10

Quote:
Originally Posted by Crayder
View Post
Did I answer you question? I was asking you to show us the code... XD
Thax,I'll try Buddy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)