29.07.2016, 10:52
Now it is like this:
And it was like this:
How it is better? I have zcmd.inc.
I recived this error(crashdetect) + crash server.
Quote:
//------------------------------------------------------------------------------ /*public OnPlayerCommandText(playerid, cmdtext[]) { return 1; }*/ //------------------------------------------------------------------------------ public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) return SendClientMessage(playerid, -1, "SERVER: Unknown command."); return 1; } //------------------------------------------------------------------------------ |
Quote:
//------------------------------------------------------------------------------ public OnPlayerCommandText(playerid, cmdtext[]) { return 1; } //------------------------------------------------------------------------------ /*public OnPlayerCommandPerformed(playerid, cmdtext[], success) { return 0; }*/ //------------------------------------------------------------------------------ |
I recived this error(crashdetect) + crash server.
Quote:
[09:15:18] [debug] Run time error 4: "Array index out of bounds" [09:15:18] [debug] Accessing element at index 32 past array upper bound 31 [09:15:18] [debug] AMX backtrace: [09:15:18] [debug] #0 00008840 in public OnPlayerCommandText (playerid=5, cmdtext[]=@001d7ad8 "////////////////////////////////////////") at D:\SCRIPTING [MY WORK]\RPG SERVER [0.3.7]\pawno\include\zcmd.inc:95 |