Why it sends the message 4 times not just 1 ?
#1

Command:
PHP код:
else if(!strcmp(option"cocaine"true4))
            {
                if(
sscanf(params"s[32]i"optionamount)) return SendClientMessage(playeridCOLOR_WHITE"[Usage]: /twithdraw cocaine [amount]");
                if(
PlayerInfo[playerid][pvTcocaine] < amount) return SendClientMessage(playeridCOLOR_GREY"You don't have that much cocaine in your trunk.");
                
PlayerInfo[playerid][pvTcocaine] -= amount;
                
PlayerInfo[playerid][pcocaine] += amount;
                    
format(stringsizeof(string), "* %s opens their trunk and takes %d grams of cocaine from it."RPN(playerid), amount);
                
SendNearbyMessage(playerid15stringCOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLECOLOR_PURPLE);
            } 
It sends *Steve opens their trunk and takes 15 grams of cocaine from it. 4 times, but why it sends the message 4 times ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)