/colourcar
#1

How does one do it?

I got this far:

Quote:

if(strcmp(cmdtext,"/colourcar",true)==0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");

ChangeVehicleColor(vehicleid,)

Reply
#2

It would be a lot easier if you would use sscanf & zcmd.
Reply
#3

Is there no way to do it in just pawno?
Reply
#4

Код:
public OnGameModeInit()
{
	new theParams[8] = "22 18", theTable[8], theCharacter, theColor[2];

	theCharacter = strfind(theParams, " ");
	strmid(theTable, theParams, 0, theCharacter);

	theColor[0] = strval(theTable);
	theColor[1] = strval(theParams[theCharacter]);
	printf("%d %d", theColor[0], theColor[1]);
}
Small hint for your code - all you have to do is copy this to your command and change names of variables.
Reply
#5

Sorry, but that confused me, a lot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)