Problem with command /duel
#3

Quote:
Originally Posted by Apenmeeuw
Посмотреть сообщение
i recommend you to use sscanf, it's way better and easier than strtok.

remove all your strtok things from the command and do:

pawn Код:
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, Red, "[ERROR:]{FFFFFF} /duel [playerid]");
do it like that, also, you need to get the latest sscanf plugin and you need to do
pawn Код:
#include <sscanf2>
for more information about sscanf i suggest you to go to the sscanf topic:
https://sampforum.blast.hk/showthread.php?tid=120356

the download link of sscanf is also there.
what line I need to edit to add what you told me?
Reply


Messages In This Thread
Problem with command /duel - by toi - 05.04.2013, 07:58
Re: Problem with command /duel - by Apenmeeuw - 05.04.2013, 08:31
Re: Problem with command /duel - by toi - 05.04.2013, 12:59
Re: Problem with command /duel - by toi - 05.04.2013, 19:52
Re: Problem with command /duel - by [..MonTaNa..] - 05.04.2013, 19:57
Re: Problem with command /duel - by toi - 05.04.2013, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)