12.04.2014, 13:50
Ok, my script is bugged.
Everytime i try it it says:there are only 4 slots, even if i try with 1,2,3,4,5 and its still says the same, why ?
PHP код:
if(sscanf(params, "uis[64]", playerb, carslot, carprice)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /sellmycar [playerid] [slot] [price]");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
if(playerid == playerb) return SendClientMessage(playerid, COLOR_GREY, "You can't sell your car to yourself.");
if(carprice == 0) return SendClientMessage(playerid, COLOR_GREY, "You cant sell your car for 0$.");
if(carslot < 1 || carslot > 4) return SendClientMessage(playerid, COLOR_WHITE, "There are only 4 car slots");