cmd enter problem
#9

Quote:
Originally Posted by xAlecsu
Посмотреть сообщение
i change this:
Код:
CMD:enter(playerid, params[])
but i have same problem..
You can have both syntax, both will compile and work.

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
What if a player is not close to any house? Will GetClosetHouseID return an invalid value? Using it in House array will give run time error 4, you need to verify it is a valid house (player close to house) before doing anything.
^ This is the solution to your problem. You need to check if GetClosetHouseID doesn't return an invalid value, which in your case it is when you're not close to any house and your command crashes.
Reply


Messages In This Thread
cmd enter problem - by xAlecsu - 21.09.2018, 20:55
Re: cmd enter problem - by kingmk - 21.09.2018, 21:37
Re: cmd enter problem - by Calisthenics - 22.09.2018, 06:24
Re: cmd enter problem - by GTLS - 22.09.2018, 07:12
Re: cmd enter problem - by TheToretto - 22.09.2018, 10:25
Re: cmd enter problem - by xAlecsu - 22.09.2018, 11:48
Re: cmd enter problem - by Zeus666 - 22.09.2018, 11:54
Re: cmd enter problem - by xAlecsu - 22.09.2018, 12:07
Re: cmd enter problem - by Gammix - 23.09.2018, 19:10
Re: cmd enter problem - by solstice_ - 23.09.2018, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)