Car id command
#4

LOL?

Its because string has already been identified.
Remove the following from the /carid.
pawn Код:
new string[128];
Instead to make it easier, copy this and replace the last one with it.
pawn Код:
if(strcmp(cmd, "/carid", true) == 0) {

if(!IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid, red, "You need to be in a car to use this command.");
return 1;
}

new vehicleid = GetPlayerVehicleID(playerid);

format(string, sizeof(string), "Your car id is %d", vehicleid);
SendClientMessage(playerid, yellow, string);
return 1;
}
No Errors should show.
Reply


Messages In This Thread
Car id command - by robert4049 - 14.07.2010, 04:37
Re: Car id command - by Faith - 14.07.2010, 04:58
Re: Car id command - by robert4049 - 14.07.2010, 05:15
Re: Car id command - by RichyB - 14.07.2010, 06:14

Forum Jump:


Users browsing this thread: 1 Guest(s)