Jump to content
  • 0

problema Tmp = strtok


InceMan

Question

Problema intalnita (descriere):imi da eroare la tmp = strtok(cmdtext, idx);

inainte mergea dar am decis sa pun ceva de genul si nu mai merge format(string, sizeof(string), "{FF0000}Info: {FFFFFF}Comanda {FF0000}%s {FFFFFF}nu exista!", cmdtext);
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:loadmission(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            if(playerVariables[playerid][pAdminLevel] < 3)return SendClientMessage(playerid, COLOR_RED, "Your admin level 7 is not high enough to use this command.");

            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "{33ccff}Utilizeaza:{FFFFFF} /loadmission [missionname]");
                    return 1;
                }
                LoadMission(playerid,tmp);
            }

        }
        return 1;
    }


Imagini / Video (optional):
Ati incercat sa rezolvati singur?: da

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Link to comment
Share on other sites

4 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.