Problem: Nije prob. nego neznam kako kad nesto koristim kao npr /aduty da pise Administrator Peter Memorex(da nema ona crta '_') i npr kad kostim svaku komandu gde je npr necije ime kao sto je /me i to /b da nema ona crta "_" ako me kontate...
Dio Scripte:
Et /me komanda pa ja cu to Copy Paste u druge komande (AKo neko pomogne)
if(strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nisi ulogiran jos !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_DGOLD,"Koristite:{FFFFFF} /me ");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}Hvala Unapred 😄
