String problem
#8

By itself, it will not.
pawn Код:
CMD:test(playerid, params[])
{
    new objectmodel, car;
    new string[128];
    format(string, sizeof string, "You Have Added Object ID %d On Vehicle ID %d.", objectmodel, car);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    return 1;
}
It will print "You Have Added Object ID 0 On Vehicle ID 0".

Like I said before, creating a variable without assigning a value to it, it will get the value 0 by default. You need to assign the value of the object that you've stored somewhere.
Reply


Messages In This Thread
String problem - by [..MonTaNa..] - 01.06.2013, 04:22
Re: String problem - by Emmet_ - 01.06.2013, 04:26
Re: String problem - by [..MonTaNa..] - 01.06.2013, 14:05
Re: String problem - by Konstantinos - 01.06.2013, 14:11
Re: String problem - by [..MonTaNa..] - 01.06.2013, 14:24
Re: String problem - by Konstantinos - 01.06.2013, 14:27
Re: String problem - by [..MonTaNa..] - 01.06.2013, 14:37
Re: String problem - by Konstantinos - 01.06.2013, 14:43
Re: String problem - by Emmet_ - 01.06.2013, 15:39
Re: String problem - by [..MonTaNa..] - 01.06.2013, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)