[SA-MP] Pomoc molim vas
Results 1 to 2 of 2

Thread: Pomoc molim vas

  1. #1
    Junior Member Array
    Join Date
    Mar 2018
    Karma
    0

    Unhappy Pomoc molim vas

    Napravio sam sve da se uplacuje racun i da kupujes sim karticu ali kad ja pokusam da sms broj neki samo posalje meni tu poruku a tome igracu
    ne posalje moze li pomoc molim vas...
    Skripta:
    CMD:sms(playerid, params[])
    {
    new Poruka[256], SMS[256], P_NAME[MAX_PLAYER_NAME], number;
    if(sscanf(params, "rs[256]", number, Poruka)) return SendClientMessage(playerid, Crvena, "/sms (ID Igraca) (Poruka)");
    if(pRacun[playerid] < 3) return SendClientMessage(playerid, Crvena, "[GRESKA]Nemate racuna da posaljete poruku.");
    GetPlayerName(playerid, P_NAME, MAX_PLAYER_NAME);
    format(SMS,sizeof(SMS), "| SMS: %s | Salje: %s |", Poruka, P_NAME);
    SendClientMessage(playerid, GOLD, SMS);
    if(pBrojTelefona[playerid] == number)
    {
    SendClientMessage(playerid, GOLD, SMS);
    }
    pRacun[playerid] = pRacun[playerid] - 3;
    return 1;
    }

  2. #2
    Senior Member Array
    Join Date
    Jun 2016
    Location
    Republika Srpska
    Age
    19
    Karma
    0

    Default

    Code:
    new msent:false;
    
    for(new i = 0; i < MAX_PLAYERS; i++) {
    	if(pBrojTelefona[i] == number) {
    		SendClientMessage(playerid, GOLD, SMS);
    		msent:true;
    	}
    }
    	
    if(msent == false) return SendClientMessage(playerid, Crvena, "Korisnik nije dostupan");

    АЛАЛ ВЕРА

Thread Information

Users Browsing this Thread

There are currently 39 users browsing this thread. (0 members and 39 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •