Jump to content
  • 0

Problema comezi.


Razvan20100

Question

Salut , nu sunt foarte priceput si va cer ajutorul , am un server sa-mp roleplay si unele comenzi nu vor sa mearga. De exemplu scriu "/a Text " si imi apare exact asa "/a[dmin chat] message " e ca si cum as fi tastat decat /a dar eu tastez si text , cineva care stie va rog? sa nu uit este pe mysql . Multumesc

<a href="http://www.game-state.com/193.84.64.54:7777/"><img src="http://www.game-state.com/193.84.64.54:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

nu are legatura faptul ca este pe MySQL, chiar nu are legatura cu comanda ta.

Depinde de situatie: folosesti sscanf, zcmd | strtok dcmd | strtok zcmd | strtok strcmp

Ma rog posteaza comanda si ne dam noi seama

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

Pai nu merg multe comenzi , si mi-ar lua toata pagina daca le-as pune , in principal comenzile de admin gm este IBP RP , poate ati patit si voi si stiti ce fel de problema am

<a href="http://www.game-state.com/193.84.64.54:7777/"><img src="http://www.game-state.com/193.84.64.54:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

Pai nu merg multe comenzi , si mi-ar lua toata pagina daca le-as pune , in principal comenzile de admin gm este IBP RP , poate ati patit si voi si stiti ce fel de problema am

de ex scri /ban 11 Mure si apare

/ban [Playerid]  [reason]  ?

Updateaza sscanf

7bdea99b11.png

rimmon curv.

Link to comment
Share on other sites

Bag ID si Reason  , am facut update la sscanf si se intampla asta

SA-MP Dedicated Server

----------------------

v0.3x, ©2005-2013 SA-MP Team

[13:35:04] password = ""  (string)

[13:35:04] mapname = "San Andreas"  (string)

[13:35:04] filterscripts = ""  (string)

[13:35:04]

[13:35:04] Server Plugins

[13:35:04] --------------

[13:35:04]  Loading plugin: mysql

[13:35:04]  SA:MP MySQL Plugin 1.2.1 Loaded.

[13:35:04]  Loaded.

[13:35:04]  Loading plugin: streamer

[13:35:04]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[13:35:04]  Loaded.

[13:35:04]  Loading plugin: sscanf

[13:35:04]

[13:35:04]  ===============================

[13:35:04]      sscanf plugin loaded.   

[13:35:04]          Version:  2.8.1       

[13:35:04]    © 2012 Alex "Y_Less" Cole 

[13:35:04]  ===============================

[13:35:04]  Loaded.

[13:35:04]  Loading plugin: audio

[13:35:04]

*** Audio Plugin v0.5 R2 by Incognito loaded ***

[13:35:04]  Loaded.

[13:35:04]  Loaded 4 plugins.

[13:35:04] MySQL: Query thread running. Thread safe: Yes.

[13:35:04]

[13:35:04] Filterscripts

[13:35:04] ---------------

[13:35:04]  Loaded 0 filterscripts.

[13:35:04] *** Audio_SetPack: Expecting 3 parameter(s), but found 2

Ajunge pana aici si se inchide

<a href="http://www.game-state.com/193.84.64.54:7777/"><img src="http://www.game-state.com/193.84.64.54:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.com" style="border-style: none;" /></a>

Link to comment
Share on other sites

vezi ca ala Audio_SetPack are doar 2 parametrii

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

[pawn][/pawn]if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");

            return 1;

        }

if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)

{

SendClientMessage(playerid, COLOR_GRAD2, "  Canalul global OOC a fost dezactivat de catre un Administrator! !");

return 1;

}

if(PlayerInfo[playerid][pMuted] == 1)

{

SendClientMessage(playerid, TEAM_CYAN_COLOR, "  Nu poti vorbi, ai mute !");

return 1;

}

GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[64];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");

return 1;

}

if(PlayerInfo[playerid][pAdmin] > 0 && PlayerInfo[playerid][pAdmin] <= 1338)

{

format(string, sizeof(string), "(( Admin {FF9900}%s{FFFFFF} : %s ))", sendername, result);

}

if(PlayerInfo[playerid][pAdmin] >= 1339)

{

format(string, sizeof(string), "(( Owner {FF0000}%s {FFFFFF}: %s ))", sendername, result);

}

OOCOff(COLOR_WHITE,string);

printf("%s", string);//aici

}

return 1;

}[pawn][/pawn]

  Copiaza asta si compileaza in GM.

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.