11.12.2013, 14:51
Your code should look something like this, try the function I edited if it's right.
[i]Edit: at school, written using notepad
pawn Код:
//variable//
new allcars = 0;
//stock function//
stock CV(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2)
return AddStaticVehicle(modelid, x, y, z, angle, color1, color2), allcars++;
//debug, to count if the cars are right//
CMD:ccars(playerid, params[])
{
new string[ 50 ];
format( string, sizeof( string ), "Total Cars: %i", allcars ), SendClientMessage( playerid, -1, string );
printf( "Total Cars: %i", allcars );
return true;
}
