whats is wrong?
#3

Your code should look something like this, try the function I edited if it's right.

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;
}
[i]Edit: at school, written using notepad
Reply


Messages In This Thread
whats is wrong? - by speed258 - 11.12.2013, 14:45
Re: whats is wrong? - by Phil_Cutcliffe - 11.12.2013, 14:47
Re: whats is wrong? - by Patrick - 11.12.2013, 14:51
Re: whats is wrong? - by speed258 - 11.12.2013, 14:54
Re: whats is wrong? - by Emmet_ - 11.12.2013, 14:55
Re: whats is wrong? - by Patrick - 11.12.2013, 14:55
Re: whats is wrong? - by speed258 - 11.12.2013, 14:58
Re: whats is wrong? - by Phil_Cutcliffe - 11.12.2013, 15:01
Re: whats is wrong? - by Noliax8 - 11.12.2013, 16:51
Re: whats is wrong? - by Patrick - 11.12.2013, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)