Why do i get this? - 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: Why do i get this? (
/showthread.php?tid=369250)
Why do i get this? -
Dragonlord - 16.08.2012
Код:
Please define "MODE_NAME" before including y_svar.
im about to make a register/login dialog system, but why do i keep getting this, i have no clue how to fix it, any help?
Re: Why do i get this? -
Admigo - 16.08.2012
Try to add:
#define MODE_NAME
Re: Why do i get this? -
Lordzy - 16.08.2012
It happened because,you havent defined MODE_NAME
Try defining #define MODE_NAME before including y_svar.
pawn Код:
#define MODE_NAME
#include <y_svar>
Re: Why do i get this? -
Dragonlord - 16.08.2012
but when i do that, i get back old errors when they are fixed :L
Re: Why do i get this? -
RanSEE - 16.08.2012
Код:
#define MODE_NAME "Your-Gamemode-name-goes-here."
Add that before y_svar.
Re: Why do i get this? -
Ranama - 16.08.2012
are you sure the errors is in your code and not the include? otherwise you should maybe update the include or something.
Re: Why do i get this? -
Dragonlord - 16.08.2012
i just updated it, btw, fixed it, thx, but i got some other things:
Код:
adsfa\filterscripts\FYRADM.pwn(60) : error 029: invalid expression, assumed zero
adsfa\filterscripts\FYRADM.pwn(60) : warning 215: expression has no effect
adsfa\filterscripts\FYRADM.pwn(60) : error 001: expected token: ";", but found "]"
adsfa\filterscripts\FYRADM.pwn(60) : error 029: invalid expression, assumed zero
adsfa\filterscripts\FYRADM.pwn(60) : fatal error 107: too many error messages on one line
and this is line 60:
Код:
INI_Int("pPassword", PlayerInfo[playerid][pPassword]);
what is wrong ? :L cant find it :L
Re: Why do i get this? -
avivelkayam - 16.08.2012
the password need to be String
and you stored it in the file as Integer
you need to use like that:
INI_String("pPassword", PlayerInfo[playerid][pPassword]);
Re: Why do i get this? -
Dragonlord - 16.08.2012
error 029: invalid expression, assumed zero then i get 3 of those :L