C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 001: expected token: ")", but found "["
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : warning 215: expression has no effect
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\zombierpg.pwn(293) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
INI_String("Password", PlayerInfo[playerid][Pass], 129);
INI_String("Password", PlayerInfo[playerid][Pass]);
Don't know about INI_String but try
pawn Код:
|
Don't know about INI_String but try
pawn Код:
|
I don't think that will work because INI_String needs a size parameter you put at last, can you please post two lines before this and two lines after ?
|
public LoadUserData(playerid, name[], value[])
{
INI_String("Password", PlayerInfo[playerid][Pass],[129]);
INI_Int("Cash", PlayerInfo[playerid][Cash]);
INI_Int("Admin", PlayerInfo[playerid][Admin]);
INI_Int("Kills", PlayerInfo[playerid][Kills]);
INI_Int("Deaths", PlayerInfo[playerid][Deaths]);
INI_Int("Xp", PlayerInfo[playerid][Xp]);
INI_Int("Infect", PlayerInfo[playerid][Infect]);
INI_Int("Rank", PlayerInfo[playerid][Rank]);
INI_Int("Mute", PlayerInfo[playerid][Mute]);
INI_Int("Vote", PlayerInfo[playerid][Vote]);
INI_Int("Credits", PlayerInfo[playerid][Credits]);
INI_Int("ArmourUpgrade", PlayerInfo[playerid][Armour]);
INI_Int("Online", PlayerInfo[playerid][Online]);
return 1;
}
INI_String("Password", PlayerInfo[playerid][Pass],[129]);
INI_String("Password", PlayerInfo[playerid][Pass], 129);
This
pawn Код:
pawn Код:
|
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 001: expected token: ")", but found "["
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : warning 215: expression has no effect
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\zombierpg.pwn(298) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Wont it work if you change the string to
INI_Int("Password", PlayerInfo[playerid][Pass]); ? |
HOW CAN you say such a thing?Sorry to tell you, but if you have no experience with Y_INI, then don't talk.A password being saved as a numeric value?STOP messing up with posting if you don't know what's all about.AND rumen, use a hash system, or nobody from SAMP comunity will join your server, because of being afraid of pass-steal.
|