SA-MP Forums Archive
a big problems - 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: a big problems (/showthread.php?tid=590685)



a big problems - LarryTiger - 02.10.2015

Код:
stock trcar(car[]) {
  new tmp[MAX_STRING];   938
  set(tmp,car);
  tmp=strreplace("[","(",tmp);
  tmp=strreplace("]",")",tmp);
  return tmp;
}
Код:
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(938) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(938) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(938) : error 036: empty statement
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(938) : fatal error 107: too many error messages on one line



AW: a big problems - Kaliber - 02.10.2015

Just replace MAX_STRING with 256


Re: a big problems - Face9000 - 02.10.2015

or #define MAX_STRING Number Of Strings You Use