16.10.2010, 14:49
learn to use strcmp
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.
Also, I am not sure about this, but RepairVehicle(); might not work if the vehicle has no driver.
pawn Код:
if (strcmp("/fixveh", cmdtext, true, 10) == 0)
This may or may not stop the command from working, but its still not correct.
pawn Код:
if(!strcmp("/fixveh",cmdtext,true))