What's wrong with this ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What's wrong with this ? (
/showthread.php?tid=506274)
What's wrong with this ? -
bustern - 12.04.2014
Ok, my script is bugged.
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");
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 ?