Zeile 10791:
LoadTanke();
Stock:
Function LoadTanke()
{
new arrCoords[16][64];
new strFromFile2[256];
new File: file = fopen("fuelstations.cfg", io_read);
if (file)
{
new idx;
while (idx < sizeof(TankeInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
TankeInfo[idx][tOwned] = strval(arrCoords[0]);
strmid(TankeInfo[idx][tOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(TankeInfo[idx][tMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
strmid(TankeInfo[idx][tExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
TankeInfo[idx][tEntranceX] = floatstr(arrCoords[4]);
TankeInfo[idx][tEntranceY] = floatstr(arrCoords[5]);
TankeInfo[idx][tEntranceZ] = floatstr(arrCoords[6]);
TankeInfo[idx][tLevelNeeded] = strval(arrCoords[7]);
TankeInfo[idx][tBuyPrice] = strval(arrCoords[8]);
TankeInfo[idx][tEntranceCost] = strval(arrCoords[9]);
TankeInfo[idx][tTill] = strval(arrCoords[10]);
TankeInfo[idx][tLocked] = strval(arrCoords[11]);
TankeInfo[idx][tInterior] = strval(arrCoords[12]);
TankeInfo[idx][tProducts] = strval(arrCoords[13]);
TankeInfo[idx][tMaxProducts] = strval(arrCoords[14]);
TankeInfo[idx][tPriceProd] = strval(arrCoords[15]);
idx++;
}
fclose(file);
}
return 1;
}
Zeile 3035:
Function Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}
@K3V1N
Habe die Zeile auskommentiert, jetzt Fahrzeuge geladen und die Textdraws angezeigt.
Jetzt kommt das in der Console:
04:22:03] [debug] Server crashed while executing Mysql_Lor.amx
[04:22:03] [debug] AMX backtrace:
[04:22:03] [debug] #0 native mysql_real_escape_string () [b76f31a0] from mysql.so
[04:22:03] [debug] #1 0029084c in mysql_CheckAccount (playerid=0) at Mysql_Lor.p:54432
[04:22:03] [debug] #2 000514d8 in public PlayerLoginDialog (playerid=0) at Mysql_Lor.p:8744
[04:22:03] [debug] System backtrace:
[04:22:03] [debug] #0 b692335b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[04:22:03] [debug] #1 b691c389 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so
[04:22:03] [debug] #2 b691e8ed in _ZN11crashdetect11OnExceptionEPv () from plugins/crashdetect.so
[04:22:03] [debug] #3 b6922e68 in ?? () from plugins/crashdetect.so
[04:22:03] [debug] #4 b76fb600 in ?? ()
[04:22:03] [debug] #5 b76efa2c in _Z5ErrorP5MySQLPKci () from plugins/mysql.so
[04:22:03] [debug] #6 b76f320e in _ZN7Natives26n_mysql_real_escape_stringEP6tagAMXPi () from plugins/mysql.so
[04:22:03] [debug] #7 08093c94 in ?? () from ./samp2452_633
[04:22:03] [debug] #8 b691eea7 in _ZN11crashdetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[04:22:03] [debug] #9 b692141e in ?? () from plugins/crashdetect.so
[04:22:03] [debug] #10 b692506e in amx_Exec () from plugins/crashdetect.so
[04:22:03] [debug] #11 b691edab in _ZN11crashdetect9DoAmxExecEPii () from plugins/crashdetect.so
[04:22:03] [debug] #12 b6921457 in ?? () from plugins/crashdetect.so
[04:22:03] [debug] #13 080dc025 in ?? () from ./samp2452_633
[04:22:03] [debug] #14 080b5c7b in ?? () from ./samp2452_633
[04:22:03] [debug] #15 080b1453 in ?? () from ./samp2452_633
[04:22:03] [debug] #16 b7468ca6 in __libc_start_main () from /lib32/libc.so.6
[04:22:03] [debug] #17 0804b521 in ?? () from ./samp2452_633
PS: Bin erstmal pennen, wäre nett wenn ihr irgendwie helfen könntet.