Results 1 to 2 of 2

Thread: Some problem..

  1. #1
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts

    Some problem..

    If someone can help..

    ******* script runtime error *******
    cannot cast string to bool: (file 'rocky/_zommenus.gsc', line 165)
    else if(menu == game["menu_welcome"] || game["menu_register"] || game["menu_login"])

    started from:
    (file 'rocky/_zommenus.gsc', line 62)
    self waittill("menuresponse", menu, response);
    *
    ******************************
    Attached Thumbnails Attached Thumbnails Untitled.png  

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Error message

    Click image for larger version. 

Name:	Untitled.png 
Views:	30 
Size:	5.3 KB 
ID:	823

    This doesn't work
    PHP Code:
    else if(menu == game["menu_welcome"/*bool*/ || game["menu_register"/*string*/ || game["menu_login"/*string*/
    This does
    PHP Code:
    else if(menu == game["menu_welcome"/*bool*/ || menu == game["menu_register"/*bool*/ || menu == game["menu_login"/*bool*/
    Edit: please use php tags with your code
    Last edited by Mitch; 10th January 2015 at 18:02.

  3. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (10th January 2015),Rocky (10th January 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •