CMD:SetVW CMD SSCANF error
#1

pawn Код:
CMD:setvw(playerid, params[])
{
        if(IsPlayerConnected(playerid))
        {
            new playa, virid;
            if (sscanf(params, "ui", playa, virid)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setvw [PlayerID] [VirID]");
Can someone tell me why it doesnt show that if i type just "/setvw" it says admin has set vw to 0.
Reply
#2

You have to add return, check this:

pawn Код:
if (sscanf(params, "ui", playa, virid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setvw [PlayerID] [VirID]");
Reply
#3

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
You have to add return, check this:

pawn Код:
if (sscanf(params, "ui", playa, virid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setvw [PlayerID] [VirID]");
How stupid of me to not notice that, lolz.

Thank's for correcting my grammar.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)