What's wrong with this ?
#1

Ok, my script is bugged.
PHP код:
    if(sscanf(params"uis[64]"playerbcarslotcarprice)) return SendClientMessage(playeridCOLOR_WHITE"[Usage]: /sellmycar [playerid] [slot] [price]");
    if(!
IsPlayerLoggedIn(playerb)) return SendClientMessage(playeridCOLOR_GREY"Invalid player id.");
    if(
playerid == playerb) return SendClientMessage(playeridCOLOR_GREY"You can't sell your car to yourself.");
    if(
carprice == 0) return SendClientMessage(playeridCOLOR_GREY"You cant sell your car for 0$.");
    if(
carslot || carslot 4) return SendClientMessage(playeridCOLOR_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 ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)