Error code
#1

I have an error on this line.

pawn Код:
if(sscanf(params, "i", id)) return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
Код:
error 035: argument type mismatch (argument 1)
Thanks.
Reply
#2

Try:
Код:
if(sscanf(params, "s", id)) return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
Reply
#3

break it apart?

Quote:

if(sscanf(params, "i", id))

return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");
i guess something is wrong with "if(sscanf(params, "i", id))"
Reply
#4

It's not a string... It won't work like that.

Edit:

If I remove the "return SendClientMessage(playerid, WHITE, "Server: /rap [1 - 4]");

It still has the error.

Edit 2: Fixed, I forgot to add this under the command.

Quote:

command(rap, playerid, params[])

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)