SA-MP Forums Archive
too many error messages on one line - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: too many error messages on one line (/showthread.php?tid=559556)



too many error messages on one line - Zyova - 24.01.2015

./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); 



Re: too many error messages on one line - Schneider - 24.01.2015

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


Re: too many error messages on one line - marshallbrown - 24.01.2015

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


Re: too many error messages on one line - Zyova - 24.01.2015

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); 



Re: too many error messages on one line - Zyova - 24.01.2015

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); 



Re: too many error messages on one line - Crayder - 24.01.2015

Where do you define this: "PlayerPokerUI"

Ex. new PlayerPokerUI[MAX_PLAYERS][#];


Re: too many error messages on one line - Zyova - 24.01.2015

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

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


Re: too many error messages on one line - Crayder - 24.01.2015

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


Re: too many error messages on one line - Zyova - 24.01.2015

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]; 



Re: too many error messages on one line - Zyova - 24.01.2015

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.