Is there a way to.. - 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: Is there a way to.. (
/showthread.php?tid=303715)
Is there a way to.. -
iTorran - 15.12.2011
Is there a way to store a 11 length variable?
?
Re: Is there a way to.. -
iTorran - 15.12.2011
Bump
EDIT: pfft i had passed 12 hours according to my pcs clock
Aw:Is there a way to.. -
§с†¶e®РµРe - 15.12.2011
Why don't you try it yourself??
Re: Is there a way to.. -
iTorran - 15.12.2011
I already tried it, it goes to negative values
Re: Is there a way to.. -
shitbird - 15.12.2011
I don't think I am getting your question, could you elaborate on it please?
Re: Is there a way to.. -
iTorran - 15.12.2011
I need to save some numbers totalling a length of 11
But if i try the ordinary way it will turn it into negative values
Heres the normal way, but as i said it turns to negative values:
pawn Код:
new var;
var = 12345678901;
new test[20]; format(test, sizeof(test), "Var: %i", var);
SendClientMessage(playerid, -1, test);
Re: Is there a way to.. - suhrab_mujeeb - 15.12.2011
nvm failed.
Re: Is there a way to.. -
shitbird - 15.12.2011
new var[] = "1234567890";
printf(var);
Re: Is there a way to.. -
iTorran - 15.12.2011
Quote:
Originally Posted by shitbird
new var[] = "1234567890";
printf(var);
|
Isn't that a string?
If so, is that the only way?
Re: Is there a way to.. - Sinc - 15.12.2011
Quote:
Originally Posted by iTorran
Isn't that a string?
If so, is that the only way?
|
No. String declarations will output exactly what is expressed within quotations.
pawn Код:
main()
{
new var[] = "12345678901";
printf(var);
}
What I'm assuming you are attempting to do is output a number of that size (12 billion... i believe).