22.03.2011, 22:05
Hello everybody,
I have searched for the wrong piece of code the whole day but i cant find:S
What's wrong with this:
The idea is that you can get in a cab and typ /takejob then the chat will say: you're now a taxidriver
But if you dont have a vehicle or you're in another vehicle and you typ /takejob there have to stay: You cannot work in this vehicle
Thanks a lot!
I have searched for the wrong piece of code the whole day but i cant find:S
What's wrong with this:
Код:
if(strcmp("/takejob", cmdtext, true) == 0) { if IsPlayerInVehicle(playerid,420) *then SendClientMessage(playerid, 0xFFFFFFFF, "You're now a taxidriver!"); //and what whe have to do as driver! else SendClientMessage(playerid, 0xFFFFFFFF, "You cannot work in this vehicle"); } return 1; }
But if you dont have a vehicle or you're in another vehicle and you typ /takejob there have to stay: You cannot work in this vehicle
Thanks a lot!