YSI\y_svar.inc(67) : fatal error 111: user error: Please define "MODE_NAME" before including y_svar.
#1

Whats Wrong ?
YSI\y_svar.inc(67) : fatal error 111: user error: Please define "MODE_NAME" before including y_svar.
Reply
#2

#define MODE_NAME

Add it somewhere
Reply
#3

Quote:
Originally Posted by aco_SRBIJA
View Post
#define MODE_NAME

Add it somewhere
the Same problem
Re: YSI\y_svar.inc(67) : fatal error 111: user error: Please define "MODE_NAME" before including y_svar.
nothing changed
Reply
#4

pawn Code:
#define MODE_NAME "MyGamemode"
before including y_svar
Reply
#5

Not Working
:S
Reply
#6

to include YSI i just have to put
#include <YSI>
when i put it like this :
Code:
#inclusw <YSI>
#define MODE_NAME "Zm"
Not Working
But if i put it like dis :
Code:
#define MODE_NAME "Zm"
#include <YSI>
It Take too long to Compiler
and Warning Show : warning 203: symbol is never used: "Langs_AddLanguage"
I never add somthing Called Langs_AddLanguage
Reply
#7

pawn Code:
#define MODE_NAME "Zm"
#include <YSI>
this is correct. the warning shows because the "YSI" file includes several libraries, including y_languages and y_text. those 2 libraries requires a "language" to be added to system
you can use under OnGameModeInit() callback:
pawn Code:
Langs_AddLanguage("EN", "English");
// more languages here
and the warning will disappear.
Reply
#8

Thanks its work But why does it take long time to compile D: ?& + Rep
Reply
#9

And Sometime it does't Response
Reply
#10

If i Want To Define or include only Classes Wat should i do ?
Reply
#11

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
    new 
ZTeam Class_Add(162,623.8319,-506.1828,16.3525,92.4209,WEAPON_CHAINSAW,22);
    if(
GetPlayerSkin(playerid) == ZTeam)
  
    {
    
GameTextForPlayer(playerid"~r~zombie Team"10004);
    }
    else if(
GetPlayerSkin(playerid) == 2)
    {
    
GameTextForPlayer(playerid"~g~human Team"10004); 
How and Where can i put this Class_SetPlayer(classid, playerid, boolet);
Reply
#12

What About Group_SetPlayer
How it Work
Quote:

#define TEAM_ZOMBIES 1
#define TEAM_HUMANS 2

public OnPlayerSpawn(playerid)
{
new ZTeam = Class_AddForGroup(TEAM_ZOMBIES,162,623.8319,-506.1828,16.3525,92.4209,WEAPON_CHAINSAW,200);
if (classid = TEAM_ZOMBIES){
Group_SetPlayer(ZTeam, playerid, false);
return -1;
}
}

Код:
C:\Users\almooo\Desktop\Zombie server\pawno\include\YSI\y_classes.inc(545) : error 017: undefined symbol "Group_SetPlayer"
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(68) : warning 213: tag mismatch
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(69) : error 017: undefined symbol "classid"
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(69) : warning 215: expression has no effect
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(69) : error 001: expected token: ";", but found ")"
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(69) : error 029: invalid expression, assumed zero
C:\Users\almooo\Desktop\Zombie server\gamemodes\Zm.pwn(69) : fatal error 107: too many error messages on one line
Reply
#13

Same here Plz Here : user error: Please define "MODE_NAME" before including y_users.

when i add like this :

#include <YSI\y_users>
#define MODE_NAME "RunMeOnceOnly"

Then the error and if like that


#define MODE_NAME "RunMeOnceOnly"
#include <YSI\y_users>

Then Pawno Stop Working not responding plz help
Reply
#14

Leave it for a few minutes, and check then. Some YSI libraries make compile time much much longer
Reply
#15

noo !! "close the app error" , and then no other choice
Reply
#16

amazing bump guys
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)