#1

Код:
forward loadaccount_Players_Data(playerid, name[], value[]);
public loadaccount_Players_Data(playerid, name[], value[])
{
    INI_String("Name", pInfo[playerid][playername]);
    INI_String("Password", pInfo[playerid][Pass],129);
Give me error undefined symbol INI_String only for the Name one password one line works fine
Reply
#2

pawn Код:
INI_String("Name", pInfo[playerid][playername], sizeof(pInfo[playerid][playername]))
Because you need the size...
Reply
#3

didn't work
Reply
#4

Try this :-
pawn Код:
forward loadaccount_Players_Data(playerid, name[], value[]);
public loadaccount_Players_Data(playerid, name[], value[])
{
    INI_String("Name", pInfo[playerid][playername], sizeof(pInfo[playerid][playername]);
    INI_String("Password", pInfo[playerid][Pass], 129);
Код:
INI_String(name[], variable , length );
Because if you don't use Length, you might get Undefined Symbol.
Reply
#5

pawn Код:
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 017: undefined symbol "INI_String"
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 001: expected token: "]", but found "-identifier-"
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : warning 215: expression has no effect
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 001: expected token: ";", but found "]"
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : fatal error 107: too many error messages on one line
ERROR LINE IS
pawn Код:
INI_String("Name", pInfo[playerid][playername], sizeof(pInfo[playerid][playername]);
Reply
#6

Try, not tested yet :-
pawn Код:
forward loadaccount_Players_Data(playerid, name[], value[]);
public loadaccount_Players_Data(playerid, name[], value[])
{
    INI_String("Name", pInfo[playerid][playername], 24);
    INI_String("Password", pInfo[playerid][Pass], 129);
Reply
#7

now this
pawn Код:
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 001: expected token: ")", but found "["
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : warning 215: expression has no effect
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 001: expected token: ";", but found "]"
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : error 029: invalid expression, assumed zero
E:\Game Modes\1v1_DM_Server\gamemodes\test.pwn(4268) : fatal error 107: too many error messages on one line
Reply
#8

Does playername in the enum has size of 24 or any size at all?
Reply
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Does playername in the enum has size of 24 or any size at all?
thanks man i forgot about it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)