Need help in duel system !
#2

Instead of
Quote:

if(sscanf(params,"u",target)) return SendClientMessage(playerid,-1,"**Usage: /duel <playerid>");

try
Quote:

target = strval(params);

or something like that. Strval should work fine for getting the id from the string

Add some debugging code like printf(target); etc, to see what the value of the variable is when you are using it in the SendClientMessage. Printing variables always helps to find problems.

I haven't tested so I don't know if that is the problem, but I have never used the "u" character before in sscanf, so I just assume its something to do with that, but maybe not. I cant see any other problems as such.
Reply


Messages In This Thread
Need help in duel system ! - by VenomMancer - 04.03.2015, 14:05
Re: Need help in duel system ! - by wooolly - 04.03.2015, 14:11
Re: Need help in duel system ! - by VenomMancer - 04.03.2015, 14:22
Re: Need help in duel system ! - by VenomMancer - 04.03.2015, 14:38
Re: Need help in duel system ! - by CalvinC - 04.03.2015, 14:43
Re: Need help in duel system ! - by X337 - 04.03.2015, 14:57
Re: Need help in duel system ! - by VenomMancer - 04.03.2015, 15:02

Forum Jump:


Users browsing this thread: 3 Guest(s)