13.07.2010, 20:27
Okay i need to change a command right now if you do the chat it's " (YOur text here)" and im trying to change it to "/b (your text here)" and it's not working.
Is the orgianl
and the on i modified to work is
and it doesnt work
Код:
}
new idx;
tmp = strtok(text, idx);
if((strcmp("(", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("(")))
{
if(text[1] != 0)
{
format(string, sizeof(string), "(( [LOCAL OOC:] %s says: %s ))", PlayerName(playerid),text[1]);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
OOCLog(string);
return 0;
}
}
and the on i modified to work is
Код:
new idx;
tmp = strtok(text, idx);
if((strcmp("/b", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("(")))
{
if(text[1] != 0)
{
format(string, sizeof(string), "(( [LOCAL OOC:] %s says: %s ))", PlayerName(playerid),text[1]);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
OOCLog(string);
return 0;
}
}


