Is there a way to..
#1

Is there a way to store a 11 length variable?

pawn Код:
new lol = 12345678901;
?
Reply
#2

Bump

EDIT: pfft i had passed 12 hours according to my pcs clock
Reply
#3

Why don't you try it yourself??
Reply
#4

I already tried it, it goes to negative values
Reply
#5

pawn Код:
new var[11];
I don't think I am getting your question, could you elaborate on it please?
Reply
#6

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);
Reply
#7

nvm failed.
Reply
#8

new var[] = "1234567890";
printf(var);
Reply
#9

Quote:
Originally Posted by shitbird
Посмотреть сообщение
new var[] = "1234567890";
printf(var);
Isn't that a string?
If so, is that the only way?
Reply
#10

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).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)