Problem
#1

Код:
functionCD8(arg0, &arg1, arg2)
{
  new var0;
	new var1 = arg1;
	new var2[255];
  while(arg1 < var0 && arg0[arg1] != arg2 && arg1 - var1 < 254)
	{
    var2[arg1 - var1] = arg0[arg1];
		arg1++;
	}
  var2[arg1 - var1] = 0;
	if(arg1 < var0 && arg0[arg1] == arg2)
	{
		arg1++;
	}
}
Quote:

C:\Documents and Settings\Vyorel\Desktop\St.pwn(193) : error 028: invalid subscript (not an array or too many subscripts): "arg0"
C:\Documents and Settings\Vyorel\Desktop\St.pwn(193) : warning 215: expression has no effect
C:\Documents and Settings\Vyorel\Desktop\St.pwn(193) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Vyorel\Desktop\St.pwn(193) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Vyorel\Desktop\St.pwn(193) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Whi?
Reply
#2

you used arg0 as an array in your while statement so i think you need to change it from functionCD8(arg0, &arg1, arg2) to functionCD8(arg0[], &arg1, arg2)
Reply
#3

You used DEAmx so the variables had inversed
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)