How to do it correctly? - 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: How to do it correctly? (
/showthread.php?tid=352655)
How to do it correctly? -
roleplay501 - 20.06.2012
Im trying to make a custom format,
Код:
stock format_ex(lang, str[], size, const text_eng, const text_heb, {Float,_}:...)
{
switch(lang) {
case 1: format(str, size, text_heb, {Float,_}:...);
default: format(str, size, text_eng, {Float,_}:...);
}
return 1;
}
w/o success, hope you can help me to make it correctly
Re: How to do it correctly? -
roleplay501 - 21.06.2012
Somebody knows how to do it?
Re: How to do it correctly? -
nilanjay - 21.06.2012
pawn Код:
stock format_ex(lang, str[], size, const text_eng, const text_heb, {Float,_}:...)
{
switch(lang) {
case 0: format(str, size, text_heb, {Float,_}:...); // This should start from 0
default: format(str, size, text_eng, {Float,_}:...);
}
return 1;
}
Re: How to do it correctly? -
Lorenc_ - 21.06.2012
Lol, it could be 32, 12, 42, 10, 2, 5, 6... ^
You really cannot do this without adding a whole lot of #EMIT lines. Use y_va and seek the examples and just revamp on that.
Re: How to do it correctly? -
roleplay501 - 21.06.2012
Okay, Thank you. :/