27.03.2016, 18:30
(
Последний раз редактировалось NeXoR; 28.03.2016 в 12:29.
)
This is my /accept taxi, When I remove the "/*" and "*/" my whole compiler is spammed with errors and warnings
Code:
Code:
Код:
if(!strcmp(params, "taxi", true)) { new playerb; if(!IsATaxidriver(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "You are not a Taxi driver."); if(AcceptedTaxi[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "You have already accepted a taxi call."); if(sscanf(params, "s[128]i", params, playerb)) return SendClientMessage(playerid, COLOR_GREY, "/accept taxi [ID]"); if(!IsPlayerLoggedIn(playerb) && !IsPlayerNPC(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id."); if(OrderedTaxi[playerb] == 1) { format(string, sizeof(string), "You have accepted %s's Taxi call, He is now marked on your radar", RPN(playerb)); SendClientMessage(playerid, COLOR_YELLOW, string); format(string, sizeof(string), "Taxi Driver %s is now on his way to you", RPN(playerid)); SendClientMessage(playerb, COLOR_YELLOW, string); CP[playerid] = 8779; AcceptedTaxi[playerid] = 1; new Float:PosX, Float:PosY, Float:PosZ; GetPlayerPos(playerb, PosX, PosY, PosZ); SetPlayerCheckpoint(playerid, PosX, PosY, PosZ, 4.0); return 1; } } else if(OrderedTaxi[playerb] == 0) { SendClientMessage(playerid, COLOR_GREY, "This player hasn't ordered a Taxi"); return 1; } }*/