Quote:
Originally Posted by Cameltoe
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid) { if(strmatch(VehicleInfo[vehicleid][Owner], GetName(playerid))) { return 1; } else { // clear animations, cant be bothered searching it up x)) } return 1; }
stock strmatch(const String1[], const String2[]) { if ((strcmp(String1, String2, true, strlen(String2)) == 0) && (strlen(String2) == strlen(String1))) { return true; } else { return false; } }
Should work.
|
Getting the same result..