Unknown command problem
#4

The value of "place" is probably greater than the size of the PlesI array. Change to:
pawn Код:
for (new x; x < sizeof PlesI; x++)
Also what is this?
pawn Код:
PlesI[x][EnterPos][1d]
It was supposed to be [1], not sure how it was even compiled.

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
To understand what I've done.. I returned a client message to the player if he's not in the right place instead of returning 0, because returning 0 causes that the server sends you the unknown command error.
Which is wrong because unless the loop is finished, you cannot know whether a player is in range or not. He does not return 0 either, but a run time error inside a command will break the code execution and no value will be returned (which will show the unknown command).
Reply


Messages In This Thread
Unknown command problem - by ,TomY' - 25.06.2018, 17:49
Re: Unknown command problem - by JasonRiggs - 25.06.2018, 18:26
Re: Unknown command problem - by Lokii - 25.06.2018, 18:43
Re: Unknown command problem - by Calisthenics - 25.06.2018, 18:51
Re: Unknown command problem - by JasonRiggs - 25.06.2018, 18:59
Re: Unknown command problem - by ,TomY' - 25.06.2018, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)