Command problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Command problem (
/showthread.php?tid=407520)
Command problem -
Whizion - 14.01.2013
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.
Re: Command problem -
Gamer_007 - 14.01.2013
whts the error or problem u have ??
Re: Command problem -
Whizion - 14.01.2013
No error, it compiles fine. The problem is the code doesn't execute till the end.
Only "hello1" is being printed, "hello2" doesn't.
Re: Command problem -
Gamer_007 - 14.01.2013
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
Re: Command problem -
Whizion - 14.01.2013
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.
Re: Command problem -
Konstantinos - 14.01.2013
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.
Re: Command problem -
LarzI - 14.01.2013
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.
Re: Command problem -
Whizion - 15.01.2013
BUMP...
Re: Command problem -
Whizion - 17.01.2013
Is it possible that nobody knows the answer?