Активный
- Регистрация
- 20 Окт 2023
- Сообщения
- 125
- Автор темы
- #1
[14:49:39] [debug] AMX backtrace:
[14:49:39] [debug] #0 004c842c in SetBizzStr (idx=6, stolb[]=@01ac74ac "bOwner", znach[]=@00c1fa60 "None") at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:58004
[14:49:39] [debug] #1 004a5a1c in public UpdateOtherAndGz () at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:54983
[14:49:39] [debug] #2 004938e4 in public SecUpdate () at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:53436
54983:
58004:
stock SetBizzStr(idx, stolb[], znach[])
{
new Query[128];
format(Query, sizeof(Query), "UPDATE "TABLE_BIZZ" SET %s = '%s' WHERE id = '%d' LIMIT 1", stolb, znach, idx);
return mysql_tquery(bd,Query);
}
[14:49:39] [debug] #0 004c842c in SetBizzStr (idx=6, stolb[]=@01ac74ac "bOwner", znach[]=@00c1fa60 "None") at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:58004
[14:49:39] [debug] #1 004a5a1c in public UpdateOtherAndGz () at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:54983
[14:49:39] [debug] #2 004938e4 in public SecUpdate () at D:\Projects\Reclaim RP\Мод\gamemodes\rcrp.pwn:53436
54983:
Код:
for(new i = 1; i <= TOTALBIZZ;i++)
{
SetBizzStr(i,"bOwner",BizzInfo[i][bOwner]);
SetBizzInt(i,"bMoney",BizzInfo[i][bMoney]);
SetBizzInt(i,"bTotalMoney",BizzInfo[i][bTotalMoney]);
SetBizzInt(i,"bProduct",BizzInfo[i][bProduct]);
SetBizzInt(i,"bZavodProduct",BizzInfo[i][bZavodProduct]);
SetBizzInt(i,"bMafia",BizzInfo[i][bMafia]);
SetBizzInt(i,"bLock",BizzInfo[i][bLock]);
SetBizzInt(i,"bLockTime",BizzInfo[i][bLockTime]);
}
58004:
stock SetBizzStr(idx, stolb[], znach[])
{
new Query[128];
format(Query, sizeof(Query), "UPDATE "TABLE_BIZZ" SET %s = '%s' WHERE id = '%d' LIMIT 1", stolb, znach, idx);
return mysql_tquery(bd,Query);
}