ID bug
#1

Removed, Thanks
Reply
#2

Change yourid to a integer and then do this:

PHP код:
//Instead of this
while(mysql_fetch_row_format(Query"|"))
        {
            
mysql_fetch_field_row(i"id"); format(youridsizeof(yourid), i);
        }
            
format(stringsizeof(string), "Your user ID is : %d",i);
            
SendClientMessage(playerid,nicegreen,string);

//Do this

while(mysql_fetch_row_format(Query"|"))
        {
            
mysql_fetch_field_row(i"id"); 
            
yourid strval(i); //i is a string and we want the integer value that Mysql got for us 
        
}
            
format(stringsizeof(string), "Your user ID is : %d"yourid); //You had i here but that is a string, also we used yourid to store the value so we just change it to yourid 
            
SendClientMessage(playerid,nicegreen,string); 
Alternatively, you could remove yourid completely and just change the %d to a %s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)