Update in %f, %d, %s [+REP]
#1

Hello

I want to do one function to update all these: %f | %d and %s.


Example:

Код:
UpdateOwnableCar(car, "PosX", FloatToStr(OwnableCar[car][PosX]));
also i want to save %s and %d with this same function:

Код:
UpdateOwnableCar(car, "Model", OwnableCar[car][Model]);
Attention in here: Function is same: UpdateOwnableCar
PosX is FLOAT and Model is INT

I hope you understand me. I don`t know what does FloatToStr, because i saw this code somewhere and made me to look more about that.


So i need to know what is in

Код:
public UpdateOwnableCar(..)
{
     What is here?
}
Reply
#2

I give +2REP to who figure it out I need it fast, my work is stopped because of that :P
Reply
#3

Don't know what you actually want but I think you want this function. https://sampwiki.blast.hk/wiki/Format
Reply
#4

No

That function i discribed is updating ownablecar stats into mysql. But i want that i can update Int and Float with same
public.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)