Some errors while compiling
#1

PHP код:
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(937) : error 017undefined symbol "MAX_STRING"
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(937) : error 009invalid array size (negativezero or out of bounds)
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(937) : error 036: empty statement
C
:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(937) : fatal error 107too many error messages on one line 
line and stuff

PHP код:
stock trcar(car[]) {
  new 
tmp[MAX_STRING];
  
set(tmp,car);
  
tmp=strreplace("[","(",tmp);
  
tmp=strreplace("]",")",tmp);
  return 
tmp;

can anyone help me please ?
Reply
#2

@ top of ur script
PHP код:
#define MAX_STRING any_numerical_value_here 
Reply
#3

got this then
Код:
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(941) : error 017: undefined symbol "set"
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(942) : error 017: undefined symbol "strreplace"
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(942) : error 033: array must be indexed (variable "tmp")
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(943) : error 017: undefined symbol "strreplace"
C:\Users\endlesscrap\Desktop\STG\gamemodes\dmrace.pwn(943) : error 033: array must be indexed (variable "tmp")
Код:
stock trcar(car[]) {
  new tmp[MAX_STRING];
  set(tmp,car);
  tmp=strreplace("[","(",tmp);
  tmp=strreplace("]",")",tmp);
  return tmp;
}
Reply
#4

Did you define it as any_numerical_value_here or did you actually enter a number?
Reply
#5

i entered a number
Reply
#6

Код:
stock trcar(car[]) { 
  new tmp[MAX_STRING]; 
  set(tmp,car); 
  tmp=strreplace("[","(",tmp); 
  tmp=strreplace("]",")",tmp); 
  return tmp; 
}
all the errors are in here
Reply
#7

It looks like you don't have dutils.inc included as this include contains these functions.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)