Custom Made Phone system, saying un-existent number. :S
#8

pawn Код:
if(iTargetID != INVALID_PLAYER_ID)
            {
                new text[128], string[128];
                if(!sscanf(params, "s[128]", text))
                {
                    format(string, sizeof(string), "He says: %s", text);
                    SendClientMessage(iTargetID, COLOR_YELLOWGREEN, string);
                    format(string, sizeof(string), "You said: %s", text);
                    SendClientMessage(playerid, COLOR_GREEN, string);
                    return 1;
                }
                else return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /p [Text]");
Why are you using this inside the loop?
It should be outside.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)