Command problem
#1

I'm using ZCMD, and here's my command:

cmd(lol, playerid, params[])
{
print("hello1");
new final_string[2048], tmp[128];
new commands[15][128]; print("hello2");
return 1;
}

Only "hello1" is being printed, what am i doing wrong?

Thank you.
Reply
#2

whts the error or problem u have ??
Reply
#3

No error, it compiles fine. The problem is the code doesn't execute till the end.

Only "hello1" is being printed, "hello2" doesn't.
Reply
#4

when i try to comiple it has 3 warning with header warns.

Remove this
pawn Код:
new final_string[2048], tmp[128];
new commands[15][128];
Btw read this:https://sampforum.blast.hk/showthread.php?tid=55261
Reply
#5

Then you're doing something wrong, because I compile it with zero errors.

@tutorial, yes i know, but this is a "cut-out" from a larger command, i have a use for such a big string.
Reply
#6

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
This tutorial is about "strtok" or even client messages on chat. The limit on the dialog messages or textdraw is different.
Reply
#7

Quote:
Originally Posted by Dwane
Посмотреть сообщение
This tutorial is about "strtok" or even client messages on chat. The limit on the dialog messages or textdraw is different.
He has a section where he lightly mentions files and SQL queries and that they may need more than 256 cells.
Reply
#8

BUMP...
Reply
#9

Is it possible that nobody knows the answer?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)