Quote:
Originally Posted by JaTochNietDan
You're comparing a string with the length of the inputtext variable, I'm not sure what you're trying to achieve there. Are you trying to compare the inputtext with number plate? If so you cannot compare strings directly in Pawn, you need to use strcmp, for example:
pawn Код:
if(strcmp(GetVehicleNumberPlate(v), inputtext, true) == 0) // They are the same
Also the second error means that you're using inconsistent return types, it means that at one point you are returning a string, and then you are returning an integer, you cannot do that, although I don't know why you even need that function, just do this:
pawn Код:
if(strcmp(vPlate[vehicleid], inputtext, true) == 0) // They are the same
It makes a lot more sense!
|
Oh well.. I understand now. Thank you! You're the best!