Filterscript support.
#1

This is currently one of the errors I'm experiencing.

Код:
(3114) : error 029: invalid expression, assumed zero
Код:
  liststring[1524];
  format(str, sizeof str, "             REMEMBER THE MODEL ID! \n\n______Available vehicles (name: model , price):______ \n \n [ Landstalker: 400 , $83999 ] [ Buffalo: 402 , $80500 ] [ Sentinel: 405 , $56500 ] \n [ Stretch: 409 , $234999 ] [ Voodoo: 412 , $64500 ] [ Cheetah: 415 , $460999 ] \n [ Washington: 421 , $77000 ] [ Bobcat: 422 , $35500 ] [ Premier: 426 , $90500 ] \n");
  format(str1, sizeof str1, " [ Hotknife: 434 , $63500 ] [ Admiral: 445 , $69999 ] \n [ Phoenix: 603 , $349000 ] [ Faggio: 462 , $15999 ] [ Freeway: 463 , $34500 ] [ Glendale: 466 , $46600 ] \n [ Oceanic : 467 , $40000 ] [ Sanchez : 468 , $ 21999 ] [ ZR-350 : 477 , $77500 ] \n [ Comet : 480 , $104999 ] [ Burrito : 482 , $32500 ] [ Virgo : 491 , $41500 ] \n [ Greenwood: 492 , $52999] [ Elegant: 507 , $87999 ] [ Feltzer: 533 , $70000 ] \n");
  format(str3, sizeof str3, " [ Slamvan: 535 , $79999 ] [ Hustler: 545 , $45999 ] [ Tampa: 549 , $32999 ] \n [ Jester: 559 , $95500 ] [ Sultan: 560 , $280000 ] [ Elegy: 562 , $96999 ] \n [ Flash: 565 , $55000 ] [ Savanna: 567 , $69999 ] [ Broadway: 575 , $64500 ] \n [ Huntley: 579 , $85500 ] [ Stafford: 580 , $64500 ] [ Club : 589 , $55000 ] \n [ Alpha: 602 , $102500 ]");
  format(str2, sizeof str2, " \n \n ______Boats (name: model , price):______ \n [ Dinghy: 473 , $80000 ] [ Tropic: 454 , $250000 ] \n \n ______Available Helicopters (name: model , price):______ \n [ Maverick: 487 , $1489999 ] ");
  format(liststring, sizeof liststring, "%s%s%s%s", str, str1, str3, str2);
  ShowPlayerDialog(playerid, 1514, DIALOG_STYLE_MSGBOX, "Vehicle ID's", liststring, "Continue", "Cancel");
	}
	return 1;
	}
	return 0;
}
Also I'm encountering the exact same errors, just on these lines:

Код:
              ShowPlayerDialog(playerid, 1112, DIALOG_STYLE_MSGBOX, "Talk", "You don't have the money!" , "Okay", "Exit");
							return 1;
						}
						if(GetPlayerMoney(playerid) < CarsPrices[car-400])
						{
              ShowPlayerDialog(playerid, 1112, DIALOG_STYLE_MSGBOX, "Talk", "You don't have the money!" , "Okay", "Exit");
							return 1;
I've read many topics and even three tutorials about Dialogs, but it didn't work out as I hoped.
These errors occurred after I #define'd DIALOG_STYLE_MSGBOX and DIALOG_STYLE_INPUT.

Anyone knows how to fix this?
Reply
#2

I assume I did something wrong when I defined DIALOG_STYLE_MSGBOX and DIALOG_STYLE_INPUT.
Since when I defined those, the errors occurred.
Though it should work since the dialog structure is ordinary?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)