05.09.2017, 14:07
Bro, So many errors, I fixed it for you, Rep+ me please
Main thing, Is you leaving space between if and the (
Remove it, I did it in this code
+ Who even still uses OnPlayerCommandText, Use ZCMD next time bro, Jeez!
Anyways there is the code
Al through, i did my best to fix, This might come to an error due to the fact if you want no errors, you will have to edit a lot, and i mean "alot" of codes to make it work properly, Just try this
Main thing, Is you leaving space between if and the (
Remove it, I did it in this code
+ Who even still uses OnPlayerCommandText, Use ZCMD next time bro, Jeez!
Anyways there is the code
PHP код:
else if(!strcmp(type, "maxhealth", true)) {
new typeint;
if(sscanf(string, "i", typeint)) return SendSyntaxMessage(playerid, "/editcar [id] [maxhealth] [number]");
if(typeint < 0) return SendErrorMessage(playerid, "the specific type can't be below 0");
SetVehicleHealth(vehicleid, typeint);
return 1;
}

