udb saving rank, tiny error.
#1

So here's the deal.

I want to save my players ranks', by using udb. I've got a login system as filterscript, but I decided to save this one thing on my gamemode:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new player, rank;
    if (udb_Exists(PlayerName(playerid))){
    if (!PLAYERLIST_authed[playerid]) {
    dUserSetINT(PlayerName(playerid)).("rank",TeamRank[5][GetPlayerTeam(player)][rank]);
    }
    PLAYERLIST_authed[playerid]=false;
    return 1;
}
    return 1;
}
Here's my error:


pawn Код:
C:\Users\reha5\Desktop\samp server\gamemodes\quebradosrp.pwn(348) : error 032: array index out of bounds (variable "TeamRank")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Thanks.
Reply


Messages In This Thread
udb saving rank, tiny error. - by Facepunch - 22.07.2011, 10:44
Re: udb saving rank, tiny error. - by MadeMan - 22.07.2011, 10:56
Re: udb saving rank, tiny error. - by Facepunch - 22.07.2011, 11:02
Re: udb saving rank, tiny error. - by MadeMan - 22.07.2011, 11:04
Re: udb saving rank, tiny error. - by Facepunch - 22.07.2011, 11:07
Re: udb saving rank, tiny error. - by MadeMan - 22.07.2011, 11:08
Re: udb saving rank, tiny error. - by Facepunch - 22.07.2011, 11:13
Re: udb saving rank, tiny error. - by MadeMan - 22.07.2011, 11:40

Forum Jump:


Users browsing this thread: 2 Guest(s)