Argument type mismatch (argument 2)
#1

Hi Guys
Can Anywone Help Me With This Error???



Php Code:


CMD:start1(playerid,params[])
{
if(sscanf(params, "dd", params[0], params[1] )) return SendInf(playerid, "Write: /badd [a] [a]"); ///Eroor There
for(new i = params[0]; i < params[1]; i++)
{
format(stringer, sizeof(stringer), "%i %s", i, GBostName[i]);
CallLocalFunction("cmd_addbotss", "is", playerid, stringer);
}

return 1;
}
Reply
#2

PHP код:
if(sscanf(params"dd"numberOnenumberTwo)) 
COrrected this, i was kinda brain afk before, sorry

you have to create the variables that parameters will be put into, you can't use params for that.
Reply
#3

How to fix it?
Reply
#4

PHP код:
New value1value2;
if(
sscanf(params"ii" value1value2) .... 
Reply
#5

Even though creating variables for such purpose is a better choice, the problem is not there. Is the 2nd parameter of SendInf an integer like color?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)