Update in %f, %d, %s [+REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Update in %f, %d, %s [+REP] (
/showthread.php?tid=377870)
Update in %f, %d, %s [+REP] -
Larry123 - 15.09.2012
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?
}
Re: Update in %f, %d, %s [+REP] -
Larry123 - 15.09.2012
I give +2REP to who figure it out
I need it fast, my work is stopped because of that :P
Re: Update in %f, %d, %s [+REP] -
Roko_foko - 15.09.2012
Don't know what you actually want but I think you want this function.
https://sampwiki.blast.hk/wiki/Format
Re: Update in %f, %d, %s [+REP] -
Larry123 - 15.09.2012
No
That function i discribed is updating ownablecar stats into mysql. But i want that i can update Int and Float with same
public.