Sscanf problem
#1

does anyone got the W*RP sscanf2? 2.8.2
The one with playerid,params
Examble: if(!sscanf(playerid,params,"k<gunLookup>",gunid)) {
Reply
#2

1 off topic question.
Why you post fake links in your signature?
" GET FREE SERVER WITH HOSTED! " redirects to CS 1.6 vid -_- .
On topic: Use ****** before posting.
Reply
#3

Quote:
Originally Posted by Barnwell
Посмотреть сообщение
does anyone got the W*RP sscanf2? 2.8.2
The one with playerid,params
Examble: if(!sscanf(playerid,params,"k<gunLookup>",gunid)) {
nah we are in 2017 we still using sscanf 2.8.2
Reply
#4

Quote:
Originally Posted by Yaa
Посмотреть сообщение
nah we are in 2017 we still using sscanf 2.8.2
And... what do you use... your majesty?
Reply
#5

Quote:
Originally Posted by iLearner
Посмотреть сообщение
And... what do you use... your majesty?
Quote:
Originally Posted by Yaa
Посмотреть сообщение
"we still using sscanf 2.8.2"
fix your eyes :/
Reply
#6

And why would you do
PHP код:
if(!sscanf(params... 
Just use it without the '!'.
Reply
#7

Quote:
Originally Posted by saffierr
Посмотреть сообщение
And why would you do
PHP код:
if(!sscanf(params... 
Just use it without the '!'.
What's the problem with it? It's up to the coder who would decide what should be if it returns 0.

OT : sscanf is basically used for splitting/formatting purposes. I assume the game mode is using usual sscanf v2.8.2 which can be found on plugins section.
Reply
#8

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
What's the problem with it? It's up to the coder who would decide what should be if it returns 0.

OT : sscanf is basically used for splitting/formatting purposes. I assume the game mode is using usual sscanf v2.8.2 which can be found on plugins section.
Did I say that there was a problem?
No, as I thought, I just pointed something out.
It was a simple suggestion, nothing more.

Know your facts.
Reply
#9

Quote:
Originally Posted by saffierr
Посмотреть сообщение
Did I say that there was a problem?
No, as I thought, I just pointed something out.
It was a simple suggestion, nothing more.
Can you be brief about why are you suggesting so? You do realise that you can get it to work even by checking if it returns 0 or not. When sscanf returns 0, it's considered to be as a success. I already stated that it's up to the coder to choose according to what they're doing.

pawn Код:
if(sscanf(...))
    print("hi");
else
    print("cya");

//is equal to
if(!sscanf(...))
    print("cya");
else
    print("hi");
Quote:
Originally Posted by saffierr
Посмотреть сообщение
Know your facts.
I don't know why but this made me giggle.
Reply
#10

Quote:
Originally Posted by Lordzy
Посмотреть сообщение
Can you be brief about why are you suggesting so? You do realise that you can get it to work even by checking if it returns 0 or not. When sscanf returns 0, it's considered to be as a success. I already stated that it's up to the coder to choose according to what they're doing.

pawn Код:
if(sscanf(...))
    print("hi");
else
    print("cya");

//is equal to
if(!sscanf(...))
    print("cya");
else
    print("hi");


I don't know why but this made me giggle.
Hm, good to hear it made you giggle

And, yes I know both are equal, but I just simply suggested it to avoid unnecessary brackets/long codes.
Nothing else, lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)