Errors, help, please.
#1

Making a two language script with this tutorial: https://sampforum.blast.hk/showthread.php?tid=317264, but i have one errors on this line:
Код:
Код:
INI_Int("Jezik", player_Language[MAX_PLAYERS] = 1);
Error is:
Код:
IC_war.pwn(879) : error 032: array index out of bounds (variable "player_Language")
Reply
#2

Quote:
Originally Posted by SpaMaster
Посмотреть сообщение
Making a two language script with this tutorial: https://sampforum.blast.hk/showthread.php?tid=317264, but i have one errors on this line:
Код:
Код:
INI_Int("Jezik", player_Language[MAX_PLAYERS] = 1);
Error is:
Код:
IC_war.pwn(879) : error 032: array index out of bounds (variable "player_Language")
Hmm, try this:

pawn Код:
player_Language[playerid] = 1;
INI_Int("Jezik", player_Language[playerid] );
Make sure you have

pawn Код:
new player_Language[ MAX_PLAYERS ]; //at top
Hope this helps
Reply
#3

Quote:
Originally Posted by FalconX
Посмотреть сообщение
Hmm, try this:

pawn Код:
player_Language[playerid] = 1;
INI_Int("Jezik", player_Language[playerid] );
Make sure you have

pawn Код:
new player_Language[ MAX_PLAYERS ]; //at top
Hope this helps
Helps, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)