#1

so these are my codes--
pawn Код:
forward LoadBanUser_data(playerid,name[],value[]);
public LoadBanUser_data(playerid,name[],value[])
{INI_Int("Banexp",PlayerInfo[playerid][pBanexp]);
 INI_Int("BanPerm",PlayerInfo[playerid][pBanPerm]);
 INI_String("BanAdmin", PlayerInfo[playerid][pBanAdmin], 20);
 INI_String("Reason",PlayerInfo[playerid][pBanres],100);
 return 1;
}
and errors i am getting are -
Код:
G:\new server\gamemodes\add.pwn(55) : error 001: expected token: ")", but found "["
G:\new server\gamemodes\add.pwn(55) : warning 215: expression has no effect
G:\new server\gamemodes\add.pwn(55) : error 001: expected token: ";", but found "]"
G:\new server\gamemodes\add.pwn(55) : error 029: invalid expression, assumed zero
G:\new server\gamemodes\add.pwn(55) : fatal error 107: too many error messages on one line
Error line -INI_String("BanAdmin", PlayerInfo[playerid][pBanAdmin], 20);
Reply
#2

the enum ?
Reply
#3

Quote:

the enum ?

enum is not problem problem is INI_String after adding it i get errors but if u want enums are --
pawn Код:
enum pInfo
{
 pBanexp,
 pBanres,
 pBanPerm,
 pBanAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#4

pawn Код:
enum pInfo
{
 pBanexp,
 pBanres[100],
 pBanPerm,
 pBanAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#5

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
pawn Код:
enum pInfo
{
 pBanexp,
 pBanres[100],
 pBanPerm,
 pBanAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];
thanks +rep
Reply
#6

That's what I mean lol
Reply
#7

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
pawn Код:
enum pInfo
{
 pBanexp,
 pBanres[100],
 pBanPerm,
 pBanAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Do not forget to change

"pBanAdmin" to "pBanAdmin[24]"

It is also a string.
Reply
#8

Quote:
Originally Posted by Ruben_Alonso
Посмотреть сообщение
Do not forget to change

"pBanAdmin" to "pBanAdmin[24]"

It is also a string.
i did already -_-
Reply
#9

I can't guess right? By the way i was just trying to help you. That little smiley can cause you to not get more help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)