Jump to content

Recommended Posts

Posted (edited)

Salut tuturor stiti cumva unde gasec acea comanda la LSPD /somatie id 

era aceea cand tastai /somatie id [Ofiter Pitbl] suspect xsulescu esti urmatit de politie trage pe dreapta.

 

                                                    Multumesc anticipat.

Edited by Pitbul97
Posted (edited)

Daca te referi in gmul tau unde e,

Dai ctrl+f si scrii comanda

Daca vrei script ai gresit categoria, nu se cer scripturi

Edited by Mister
  • Upvote 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Posted (edited)

Nu am aceasta comanda in GM meu si de aceea am ceruto sau am cerut un sfat poate stiti udne o  pot gasi .

Edited by Pitbul97
Posted

Scuze ptr dublu post.

Aceasta comanda face urmatorul lucru.

cand tasteaza un membru din factiunea LSPD comanda /somatie id sau /so id apare in chat automat urmatorul mesaj.

[Ofiter LSPD] Xulescu esti urmarit de politie trage pe dreata.

Posted
CMD:someaza(playerid, params[])
{
    new string[256], player1;
      if(sscanf(params, "u", player1)) return
      SendClientMessage(playerid, -1, "/Someaza [PlayerID]") &&
    format(string, 256, "[Ofiter LSPD] %s esti urmarit de politie! Trage pe dreata.", PlayerName2(playerid));
    SendClientMessageToAll(-1, string);
    return 1;
}

Eu n-am erori. Acum, om vide. Iti pui tu restrctiile, culorile, sh restu.

  • Upvote 1
Posted
Quote

C:\Users\User\Desktop\samp03\gamemodes\Carbon.pwn(20793) : warning 217: loose indentation
C:\Users\User\Desktop\samp03\gamemodes\Carbon.pwn(20794 -- 20795) : error 017: undefined symbol "PlayerName2"
C:\Users\User\Desktop\samp03\gamemodes\Carbon.pwn(20796) : warning 217: loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
 

 

Posted

adauga asta. nu intru-un public sau stock sau altceva. il pui undeva. liber

 

stock PlayerName2(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}

 

iar pentru "loose indentation" aranjeaza acoladele.

Posted
Acum 4 ore, Pitbul97 a spus:

Am pus a mers compilat dar cand intru in joc si tastez /someaza id nu apare nici-un mesaj

CMD:someaza(playerid, params[])
{
    new string[9999], player1;
      if(sscanf(params, "u", player1)) return
      SendClientMessage(playerid, -1, "/Someaza [PlayerID]");
    format(string, 9999, "[Ofiter LSPD]: %s, esti urmarit de politie! Trage pe dreata.", PlayerName2(playerid));
    SendClientMessageToAll(-1, string);
    return 1;
}

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.