[BEGINNER] Whats wrong with this job command?
#1

Hello everybody,

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;
}
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!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)