cookies
#1

Fixed was using cookies 2 times
Reply
#2

da ?
defining as int and using as string ?
PHP код:

 
new idbString[128], cookies// this line should be cookies[] if you need as string
    
if(IRC_IsOp(botidchanneluser)) 
    { 
        if(
sscanf(params"ui[24]"id,cookies)) // or if cookies is int just remove that [24] 
Reply
#3

Quote:
Originally Posted by khRamin78
Посмотреть сообщение
da ?
defining as int and using as string ?
PHP код:

 
new idbString[128], cookies// this line should be cookies[] if you need as string
    
if(IRC_IsOp(botidchanneluser)) 
    { 
        if(
sscanf(params"ui[24]"id,cookies)) // or if cookies is int just remove that [24] 
Nothing changed
Reply
#4

Any help?
Reply
#5

How can cookies either be less than 1 and higher than 100 at the same time?
Read the code carefully

Also note what he said above, when you use "i" for numbers, you don't need to define a string length [length] in the sscanf. That is only needed when you use "s" for strings.

PHP код:
if(cookies && cookies 100
Reply
#6

EDITED:NVM ANSWERD ABOVE


PHP код:
if(cookies && cookies 100)
/*this will return nothing ! there is no number more than 100 and less than 1*/
// use this method instead
if(cookies || cookies 100)
/*
&& >> and
|| >> or
*/ 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)