01.12.2018, 12:25
Hey guys
When i run this command ingame
it shows up SERVER: Unknown Command and in the Server LOG it shows me this:
When i run this command ingame
Код:
CMD:carsell(playerid) { if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]]) { //CallRemoteFunction("moneygive","ii",playerid,PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2); //GivePlayerMoney(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2); PlayerInfo[playerid][pMoney] += PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2; GivePlayerMoney(playerid, PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarPreis] / 2); Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0; Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]); DestroyVehicle(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]); new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); //format(string3, sizeof(string3), "/Autos/%s%d.dtcar", playername3,Dtc_PlayerKey[playerid]); //fremove(string3); mysql_format(handle, string3, 256, "DELETE FROM `carsystem` WHERE `CarOwner`='%s_%d'",playername3,Dtc_PlayerKey[playerid]); mysql_pquery(handle,string3); Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] = 0; SCM(playerid, COLOR_YELLOW, "Fahrzeug erfolgreich verkauft. Die Hдlfte des Kaufpreises wurde dir erstattet!"); } else { SCM(playerid, COLOR_GREY, "Du besitzt kein Fahrzeug!"); return 1; } return 1; }
Код:
[debug] AMX backtrace: [debug] #0 00017648 in public cmd_carsell (0, 1464948) in cnr.amx [debug] #1 native CallLocalFunction () in samp-server.exe [debug] #2 00006378 in public OnPlayerCommandText (0, 1464912) in cnr.amx [debug] Run time error 6: "Invalid instruction" [debug] Unknown opcode 0xf0000 at address 0x0000007E