/fixveh command messed up
#5

learn to use strcmp
pawn Код:
if (strcmp("/fixveh", cmdtext, true, 10) == 0)
you are asking the script to check if the first 10 characters in cmdtext[] are "/fixveh" which is only 7
This may or may not stop the command from working, but its still not correct.
pawn Код:
if(!strcmp("/fixveh",cmdtext,true))
Also, I am not sure about this, but RepairVehicle(); might not work if the vehicle has no driver.
Reply


Messages In This Thread
/fixveh command messed up - by jurtes - 16.10.2010, 12:27
Re: /fixveh command messed up - by Cameltoe - 16.10.2010, 12:38
Re: /fixveh command messed up - by boelie - 16.10.2010, 12:42
Re: /fixveh command messed up - by jurtes - 16.10.2010, 14:15
Re: /fixveh command messed up - by Rachael - 16.10.2010, 14:49
Re: /fixveh command messed up - by Scenario - 16.10.2010, 15:33
Re: /fixveh command messed up - by [NoV]LaZ - 16.10.2010, 15:41
Re: /fixveh command messed up - by Scenario - 16.10.2010, 15:49
Re: /fixveh command messed up - by Rachael - 16.10.2010, 16:18
Re: /fixveh command messed up - by jurtes - 17.10.2010, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)