Jump to content

Sfat scritp


Pitbul97

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.