Jump to content
  • 0

[GF/RP] Problema Server


Question

Posted

Salut,am si eu o problema cum sa fac ca atunci cineva scrie o culoare {cod} sa nu ii dea voie..pentru ca atunci cand scrie orice culoare in chat pica serverul cum pot sa fac sa apara nume:liber.

Am incercat sa pun niste protectii cu

[pawn]if(strfind(text, "{", true) != -1)

    {

            SendClientMessage(playerid,COLOR_LIGHTRED,"Nu poti folosi { sau }!");

            return 0;

    }[/pawn]

merge doar daca scrie orice altceva cu { dar la culoare tot pica server-ul.

Multumesc anticipat.

2 answers to this question

Recommended Posts

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.