problem with sscanf optionaler parameter
#1

I have a problem,
he does not printet all.

server_log.txt:
PHP код:
1
2
3

My Code:
PHP код:
ocmd:stats(playerid,params[])
{
    new 
pID;
    print(
"1");
    if(
sscanf(params,"U(-1)",pID)) SCM(playerid,grau,"Admin: /stats [playerid/name]."), print("1.5");
    print(
"2");
    if(
pID==-1pID=playerid;
    print(
"3");
    new 
str[300];
    print(
"4");
        
format(str,sizeof(str),"Level: %d            Money: %d\n",Player[pID][Level],Player[pID][Money]);
    print(
"5");
    
printf("%s \nlength: %d",str,strlen(str));
    print(
"6");
    
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"caption",str,"OK","");
    print(
"end");

Reply


Messages In This Thread
problem with sscanf optionaler parameter - by WhiteKinG - 14.02.2014, 20:32
Re: problem with sscanf optionaler parameter - by Blademaster680 - 14.02.2014, 20:38
AW: problem with sscanf optionaler parameter - by WhiteKinG - 14.02.2014, 20:45
Re: problem with sscanf optionaler parameter - by CuervO - 14.02.2014, 20:45
Re: problem with sscanf optionaler parameter - by Konstantinos - 14.02.2014, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)