Üdv!
Valakinek van ötlete ehhez? Engem már szétvet az ideg.
Ha értéket adok a pInfo[playerid][jailtime]-nak, azt a pInfo[playerid][logontime] kapja meg.
strcpy(temp, sprintf(\"%s/jailtime\", PName[playerid]));
printf(\"%s\", temp);
new a = djInt(userdb, temp);
printf(\"opl logontime: %d\", iPlayer[logontime]);
printf(\"jailtime: %d\", a);
iPlayer[jailtime] = a;
printf(\"opl logontime: %d\", iPlayer[logontime]);
eredmeny:
bundaskenyer/jailtime
opl logontime: 1358620879
jailtime: 0
opl logontime: 0
Deklarálások:
#define iPlayer pInfo[playerid]
enum PLAYER_ENUM {
jailtime = 0,
level = 0,
job = 0,
money = 0,
repulesiengedely = 0,
buntetes = 0,
mute = 0,
logontime = 0,
locked_veh,
lock_type,
IP[16]
};
new pInfo[MAX_PLAYERS][PLAYER_ENUM];