SSCANF error 035: argument type mismatch (argument 2)
#6

Also an error:
pawn Код:
new text,string[70], pName[MAX_PLAYER_NAME];
    if(sscanf("s",text)) return SendClientMessage(playerid,COLOR_ERROR,"Usage: /o [Msg]"); // line with error
Should be:
pawn Код:
new text[128], string[70], pName[MAX_PLAYER_NAME];
    if(sscanf(cmdtext, "s[128]",text)) return SendClientMessage(playerid,COLOR_ERROR,"Usage: /o [Msg]"); // line with error
You were reading text into an integer variable, while you gave sscanf the instruction to extract a string.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)