Errors
#1

Hi, i saw a tutorial here, for spawning a car, and i created my own script:
CMD:kerr(playerid, params[]){
new car;
new string[128];
new Float:X, Float:Y, Float:Z;
new firstcolor;
new secondcolor;
GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
if(sscanf(params, "i", car)) return SendClientMessage(playerid, #C0C0C0, "Perdorimi: /kerr [VEHICLE ID]");
if(car < 400 || car > 611) return SendClientMessage(playerid, #C0C0C0, "ID i kerrit duhet te jete me e madhe se 399, dhe me e vogel se 612");
{
if(Vehicle[playerid] != 0) {
DestroyVehicle(Vehicle[playerid]);
}
Vehicle[playerid] = CreateVehicle(car, X, Y, Z + 3.0, firstcolor, secondcolor, -1, 1);
format(string, sizeof(string), "Ti ke krijuar nje kerr, me id", car);
SendClientMessage(playerid, C0C0C0, string);

return 1;
}

But i am getting multiple errors:
error 035: argument type mismatch (argument 2)
error 035: argument type mismatch (argument 2)
error 017: undefined symbol "Vehicle"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Any help?
Reply
#2

FIXED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)