30.06.2016, 22:25
So now these are the errors I get.
And this is my code.
Line 146 is
Line 148 is
And these two lines are the two errors.
Quote:
H:\[S]uper\gamemodes\[S]uper.pwn(146) : error 017: undefined symbol "inputtext" H:\[S]uper\gamemodes\[S]uper.pwn(148 ) : error 028: invalid subscript (not an array or too many subscripts): "SuperHuman_Info" H:\[S]uper\gamemodes\[S]uper.pwn(148 ) : warning 215: expression has no effect H:\[S]uper\gamemodes\[S]uper.pwn(148 ) : error 001: expected token: ";", but found "]" H:\[S]uper\gamemodes\[S]uper.pwn(148 ) : error 029: invalid expression, assumed zero H:\[S]uper\gamemodes\[S]uper.pwn(148 ) : fatal error 107: too many error messages on one line |
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
// Cloner[playerid] = 0;
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Superhuman_Roleplay");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin", SuperHuman_Info[playerid], pAdmin);
INI_WriteInt(File,"NormalName",GetPayerName(playerid));
INI_WriteInt(File,"NormalLevel", SuperHuman_Info[playerid], nLevel);
INI_WriteInt(File,"NormalSkin", GetPlayerSkin(playerid));
INI_WriteInt(File,"NormalAbility", SuperHuman_Info[playerid], nAbility);
INI_WriteInt(File,"NormalWeakness", SuperHuman_Info[playerid], nWeakness);
INI_WriteInt(File,"SuperName", SuperHuman_Info[playerid], sName);
INI_WriteInt(File,"SuperLevel", SuperHuman_Info[playerid], sLevel);
INI_WriteInt(File,"SuperSkin", SuperHuman_Info[playerid], sSkin);
INI_WriteInt(File,"Ability_1", SuperHuman_Info[playerid], sAbility1);
INI_WriteInt(File,"Ability_2", SuperHuman_Info[playerid], sAbility2);
INI_WriteInt(File,"Ability_3", SuperHuman_Info[playerid], sAbility3);
INI_WriteInt(File,"Weakness_1", SuperHuman_Info[playerid], sWeakness1);
INI_WriteInt(File,"Weakness_2", SuperHuman_Info[playerid], sWeakness2);
INI_WriteInt(File,"Weakness_3", SuperHuman_Info[playerid], sWeakness3);
INI_Close(File);
return 1;
}
PHP код:
INI_WriteInt(File,"Password",udb_hash(inputtext));
PHP код:
INI_WriteInt(File,"Admin", SuperHuman_Info[playerid], pAdmin);