Hallo, wenn ich folgenden CMD benutze, kackt mein Server ab..
if(strcmp(cmdtext, "/autopapiere", true) == 0)
{
format(msg, sizeof msg, "/Autos/%d", GetPlayerVehicleID(playerid));
new string3[128];
new string4[128];
new string5[128];
new string6[128];
if(IsPlayerInAnyVehicle(playerid))
{
format(string, 128, "~~~~~~ Auto Papiere ~~~~~");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string2, 128, "Auto Name: %s | Inhaber: %s", VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))- 400],dUser(msg).("user_name"));
SendClientMessage(playerid, COLOR_GREEN, string2);
format(string3, 128, "ModelID: %d | AutoID %d",GetVehicleModel(GetPlayerVehicleID(playerid)), GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_GREEN, string3);
format(string4, sizeof(string4), "Key Slot1: %s", dUser(msg).("key1_name"));
format(string5, sizeof(string5), "Key Slot2: %s", dUser(msg).("key2_name"));
format(string6, sizeof(string6), "Key Slot3: %s", dUser(msg).("key3_name"));
SendClientMessage(playerid,COLOR_GREEN, string4);
SendClientMessage(playerid,COLOR_GREEN, string5);
SendClientMessage(playerid,COLOR_GREEN, string6);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Du bist in keinem Wagen");
}
return 1;
}
ich weis nicht wieso..stimmt vllt was am ubd nicht??
Oder so kA, hoffe auf Hilfe
EdIT: auch wenn ich dUserINT(msg).("key3_name") benutze gehts nicht..
MfG
Socke