SA-MP Forums Archive
Help error 001: expected token - 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: Help error 001: expected token (/showthread.php?tid=655451)



Help error 001: expected token - R0B0C0B - 21.06.2018

hello I have the following error in the line, and not only an error gives me 2 errors in the same line

the mistake he gives me is

Код:
error 001: expected token: "-string end-", but found "-identifier-"
Код:
format(str, sizeof(str), "{00CC00}Estacionamiento"COLOR_BLANCO"\nID: %i | Propietario: {4C94F6}%s"COLOR_BLANCO"\nCon nivel %d puedes "C_AMARILLO"/comprar estacionamiento"COLOR_BLANCO"\nPrecio: {00B400}$%d"COLOR_BLANCO"\n\nPara guardar tu vehнculo usa "C_AMARILLO"/entrar"COLOR_BLANCO"\nEl costo es de {00B400}$%d"COLOR_BLANCO"/dнa", i, Estaciona[i][Propietario], Estaciona[i][Nivel], Estaciona[i][Precio], Estaciona[i][Cuota]);
Help me


Re: Help error 001: expected token - dani18 - 21.06.2018

Show me ur code "COLOR_BLANCO"


Re: Help error 001: expected token - R0B0C0B - 21.06.2018

Quote:
Originally Posted by dani18
Посмотреть сообщение
Show me ur code "COLOR_BLANCO"
#define COLOR_BLANCO 0xFFFFFFAA


Re: Help error 001: expected token - dani18 - 21.06.2018

Test this:

Код:
#define COLOR_BLANCO "FFFFFF"



Re: Help error 001: expected token - R0B0C0B - 21.06.2018

Mmmm no, + errors

error 001: expected token: ";", but found "-integer value-"
fatal error 107: too many error messages on one line


Re: Help error 001: expected token - dani18 - 21.06.2018

Oh sure, sorry, test this;

Код:
format(str, sizeof(str), "{00CC00}Estacionamiento{"COLOR_BLANCO"}\nID: %i | Propietario: {4C94F6}%s{"COLOR_BLANCO"}\nCon nivel %d puedes {"C_AMARILLO"}/comprar estacionamiento{"COLOR_BLANCO"}\nPrecio: {00B400}$%d{"COLOR_BLANCO"}\n\nPara guardar tu vehнculo usa {"C_AMARILLO"}/entrar{"COLOR_BLANCO"}\nEl costo es de {00B400}$%d{"COLOR_BLANCO"}/dнa", i, Estaciona[i][Propietario], Estaciona[i][Nivel], Estaciona[i][Precio], Estaciona[i][Cuota]);

And add this, #define C_AMARILLO "FFFF00"



Re: Help error 001: expected token - R0B0C0B - 21.06.2018

Thanks!


Re: Help error 001: expected token - dani18 - 21.06.2018

Quote:
Originally Posted by R0B0C0B
Посмотреть сообщение
Thanks!
Sure,