17.12.2016, 22:09
I feel like such an idiot for having to post this up, but i really dont understand it. I get 2 warnings with this code and i'm not sure how to fix it. I basically want it to read /car engine and /car lights as commands. I'm not too sure what to do though!
Thank you in advance.
~Reign
Код:
CMD:car(playerid, params[]) { if(sscanf(params, "i", engine)) return cmd_engine(playerid, params); if(sscanf(params, "i", lights)) return cmd_lights(playerid, params); if(!strcmp("engine")) return SendClientMessage(playerid, COLOR_GRAD1, "Please use /car engine or /car lights"); if(!strcmp("lights")) return SendClientMessage(playerid, COLOR_GRAD1, "Please use /car engine or /car lights"); return 1; }
~Reign