kocsik.pwn(107) : warning 209: function \"OnPlayerCommandText\" should return a value
public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(\"/motor-be\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Beindítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), ON, lights, alarm, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/motor-ki\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Leállítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), OFF, lights, alarm, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/lámpa-be\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Bekapcsoltad a lámpát!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, ON, alarm, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/lámpa-ki\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Kikapcsoltad a lámpát!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, OFF, alarm, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/riasztó-be\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Bekapcsoltad a riasztót!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, ON, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/riasztó-ki\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Kikapcsoltad a riasztót!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, OFF, doors, bonnet, boot, objective); return 1; }if(strcmp(\"/ajtók-nyit\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Kinyitottad az ajtókat!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, ON, bonnet, boot, objective); return 1; }if(strcmp(\"/ajtók-zár\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Bezártad az ajtókat!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, OFF, bonnet, boot, objective); return 1; }if(strcmp(\"/mh-nyit\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Felnyitottad a motorháztetõt!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, ON, boot, objective); return 1; }if(strcmp(\"/mh-zár\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Lecsuktad a motorháztetõt!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, OFF, boot, objective); return 1; }if(strcmp(\"/cst-nyit\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, \"Kinyitottad a csomagtartót!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, ON, objective); return 1; }if(strcmp(\"/cst-zár\", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, \"Bezártad a csomagtartót!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, OFF, objective); return 1; }return 1;}