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.