Why do i get this?
#1

Код:
 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?
Reply
#2

Try to add:
#define MODE_NAME
Reply
#3

It happened because,you havent defined MODE_NAME
Try defining #define MODE_NAME before including y_svar.
pawn Код:
#define MODE_NAME
#include <y_svar>
Reply
#4

but when i do that, i get back old errors when they are fixed :L
Reply
#5

Код:
#define MODE_NAME "Your-Gamemode-name-goes-here."
Add that before y_svar.
Reply
#6

are you sure the errors is in your code and not the include? otherwise you should maybe update the include or something.
Reply
#7

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
Reply
#8

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]);
Reply
#9

error 029: invalid expression, assumed zero then i get 3 of those :L
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)