21.06.2009, 14:15
Quote:
Originally Posted by Don Correlli
Did you defined dcmd?
http://forum.sa-mp.com/index.php?topic=70925.0 |
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(406) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(406) : error 036: empty statement
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(406) : fatal error 107: too many error messages on one line
line 406 =
public OnPlayerCommandText(playerid, cmdtext[])
{
405- new idx;
406-new cmd[MAX_STRING];
407-new tmp[MAX_STRING];
408 cmd = strtok(cmdtext, idx);
lol sorry yeah i have defined dcmd #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1