ERROR: sscanf2 argument type mismatch
#1

Actually, I can't find what is wrong here,
Can some one tell me what I am doing wrong

Код:
new name[MAX_PLAYER_NAME]; 
if(sscanf(params, "s[24]", name)) return SendClientMessage(playerid, COLOR_USAGE, "* USAGE:/ips [name]");
error:
Код:
C:\Users\User\Desktop\IPDB.pwn(51) : error 035: argument type mismatch (argument 1)
Reply
#2

Is it a command? Because
PHP код:
CMD:s(playeridparams[]){
    new 
name[MAX_PLAYER_NAME]; 
    if(
sscanf(params"s[24]"name)) return SendClientMessage(playerid, -1"* USAGE:/ips [name]");
    return 
1;

isn't giving me any error.
Reply
#3

show 2-3 more lines from above and below
Reply
#4

tHANKS GUYS AVYWAY I FOUND THE PROBLEM I FORGOT THAT PARAMS IS A STRING xD

Код:
CMD:ips(playerid, params[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)