PDA

View Full Version : Some problem..



Rocky
10th January 2015, 17:24
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);
*
******************************

Mitch
10th January 2015, 17:55
Error message

823

This doesn't work

else if(menu == game["menu_welcome"] /*bool*/ || game["menu_register"] /*string*/ || game["menu_login"] /*string*/)

This does

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