Lade mal crashdetect und schau, was dir da so ausgegeben wird
Code: crashdetect ausgabe
[13:36:50] [debug] Run time error 4: "Array index out of bounds"
[13:36:50] [debug] Attempted to read/write array element at negative index -400
[13:36:50] [debug] AMX backtrace:
[13:36:50] [debug] #0 00011af0 in ?? (411) in xxx
[13:36:50] [debug] #1 0000ebac in public cmd_veh (0, 302220) in xxx
[13:36:50] [debug] #2 native CallLocalFunction () in samp-server.exe
[13:36:50] [debug] #3 0000052c in public OnPlayerCommandText (0, 302184) in xxx
OnPlayerCommandText benutze ich nicht, da ich ZCMD nutze.
Code
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
if(!success) {
new string[132];
format(string, sizeof(string), "Fehler: Der Befehl '%s' wurde nicht gefunden!", cmdtext);
return SCM(playerid, COLOR_INFO, string);
}
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[]) {
if(!IsLogged(playerid)) {
SCM(playerid, COLOR_INFO, "Fehler: Du bist nicht eingeloggt!");
return 0;
}
return 1;
}
Alles anzeigen