07.07.2010, 15:59
Yeah does this save cause when I do in my gamemode
public OnPlayerDisconnect(playerid, reason)
{
if(logged[playerid] == 1)
{
GetPlayerName(playerid, playername, sizeof(playername));
money[playerid] = GetPlayerMoney(playerid);
Score[playerid] = GetPlayerScore(playerid);
dini_IntSet(udb_encode(playername), "license", license[playerid]);
dini_IntSet(udb_encode(playername), "factionid", factionid[playerid]);
dini_IntSet(udb_encode(playername), "rankid", rankid[playerid]);
dini_IntSet(udb_encode(playername), "money", money[playerid]);
dini_IntSet(udb_encode(playername), "Score", Score[playerid]);
dini_IntSet(udb_encode(playername), "Kills", Kills[playerid]);
dini_IntSet(udb_encode(playername), "Deaths", Deaths[playerid]);
dini_IntSet(udb_encode(playername), "adminlevel", adminlevel[playerid]);
dini_IntSet(udb_encode(playername), "viplevel", viplevel[playerid]);
dini_IntSet(udb_encode(playername), "exp", exp[playerid]);
This I get:
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 028: invalid subscript (not an array or too many subscripts): "factionid"
D:\joram server\gamemodes\Libertylife17.pwn(945) : warning 215: expression has no effect
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Libertylife17.pwn(945) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and line 945 is that forum the factionid and when I get that away I get the same erros on rankid
public OnPlayerDisconnect(playerid, reason)
{
if(logged[playerid] == 1)
{
GetPlayerName(playerid, playername, sizeof(playername));
money[playerid] = GetPlayerMoney(playerid);
Score[playerid] = GetPlayerScore(playerid);
dini_IntSet(udb_encode(playername), "license", license[playerid]);
dini_IntSet(udb_encode(playername), "factionid", factionid[playerid]);
dini_IntSet(udb_encode(playername), "rankid", rankid[playerid]);
dini_IntSet(udb_encode(playername), "money", money[playerid]);
dini_IntSet(udb_encode(playername), "Score", Score[playerid]);
dini_IntSet(udb_encode(playername), "Kills", Kills[playerid]);
dini_IntSet(udb_encode(playername), "Deaths", Deaths[playerid]);
dini_IntSet(udb_encode(playername), "adminlevel", adminlevel[playerid]);
dini_IntSet(udb_encode(playername), "viplevel", viplevel[playerid]);
dini_IntSet(udb_encode(playername), "exp", exp[playerid]);
This I get:
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 028: invalid subscript (not an array or too many subscripts): "factionid"
D:\joram server\gamemodes\Libertylife17.pwn(945) : warning 215: expression has no effect
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Libertylife17.pwn(945) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Libertylife17.pwn(945) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and line 945 is that forum the factionid and when I get that away I get the same erros on rankid