How to set a max number of properties per players ?
#1

Hello guys.

Anyone know how to set a number like 3 houses per players ?
Because actually in the script I use, players can have an unlimited number of properties, but only 3 locations.

Tell me what you need to help me and i'll post it.

Thank you !
Reply
#2

Use A Variable... Like PInfo[playerid][Houses] == 1 if he has one house then ++ if he bought a new house
and then onthe dialog / command use if PInfo[playerid][Houses] == MAX_HOUSES_CAN_BE_OWNED then he will get a message that .. you cannot get more houses and the operations of buying will break
Reply
#3

Thank you for helping. Thing is I'm a newbie here.
Can you check your PM's please ?
Reply
#4

Update : I'm using MySQL, still looking for help.
Reply
#5

u still need a saving variable mysql is used to load and save not to do the scripting also you will need to create a table with mysql
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)