22.07.2011, 10:44
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:
Here's my error:
Thanks.
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;
}
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.