PakiGangsta Posted January 15, 2007 Share Posted January 15, 2007 Alright I am trying to make a game and I really cant figure out how I am going to do slots.Slots are how many things you can have in your roster.I cant seem to make anything like that Link to comment https://forums.phpfreaks.com/topic/34209-need-bad-help/ Share on other sites More sharing options...
btherl Posted January 15, 2007 Share Posted January 15, 2007 Can you give some more detail? Link to comment https://forums.phpfreaks.com/topic/34209-need-bad-help/#findComment-160947 Share on other sites More sharing options...
PakiGangsta Posted January 15, 2007 Author Share Posted January 15, 2007 like i am trying to check if the user has a character in slot 1 but if he didnt have in slot 2 $slot would be 2 Link to comment https://forums.phpfreaks.com/topic/34209-need-bad-help/#findComment-161195 Share on other sites More sharing options...
Philip Posted January 15, 2007 Share Posted January 15, 2007 [code]<?phpif(!$slot_1) { $slot = '2'; } else { $slot = '1';}?>[/code] ??? ???You're going to have to give a lot more detail and show some of your code in order for us to understand what you're asking for. Link to comment https://forums.phpfreaks.com/topic/34209-need-bad-help/#findComment-161199 Share on other sites More sharing options...
.josh Posted January 15, 2007 Share Posted January 15, 2007 ...or are you saying that you have 2 slots and if the user has something in slot 1 but not in slot 2, you want the same thing to be in slot 2?[code]if(!$slot2) { $slot2 = $slot1; }[/code]is that what you are looking for? as King suggested, you're going to have to try a bit harder to explain what you mean... Link to comment https://forums.phpfreaks.com/topic/34209-need-bad-help/#findComment-161204 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.