Help me Erorr Command
#1

Hi, Every Body. Today , I write Command But Command me erorr I dont Know fix error that. Help me!!
Command: https://pastebin.com/ZzTZLaRh

Erorr:
./includes/ngg.pwn(131329) : error 035: argument type mismatch (argument 1)
./includes/ngg.pwn(131339) : error 035: argument type mismatch (argument 1)
Reply
#2

Which lines are these anyway? It would be better if you also added a comment on those lines so it would be easier to find the problem.

Found a couple of mistakes here:

PHP код:
    new string[128], giveplayeridtheloaiprice;
    if(
sscanf(params"u"giveplayeridtheloaiprice)) return SendClientMessageEx(playeridCOLOR_GREY"SU DUNG: /thachdau [playerid] [dausung/duaxe] [price]"); 
You didn't declare theloai as a string (even though later on you use it as a string).
You only scan the string for a playerid, you forgot theloai and price.


See if this fixes it.
PHP код:
    new string[128], giveplayeridtheloai[7], price;
    if(
sscanf(params"us[7]i"giveplayeridtheloaiprice)) return SendClientMessageEx(playeridCOLOR_GREY"SU DUNG: /thachdau [playerid] [dausung/duaxe] [price]"); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)