- 0
problema Tmp = strtok
-
Similar Content
-
- 1 answer
- 239 views
-
- 3 answers
- 356 views
-
- 3 replies
- 407 views
-
- 2 replies
- 33 views
-
- 1 reply
- 354 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
InceMan
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