} 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; } }
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; } }
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;
}
}
&& (strlen(tmp) == strlen("/")))
if(strcmp(cmd, "/b", true) == 0) { 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; } }
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1546) : error 017: undefined symbol "cmd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
[/code]
and i get this error Код:
C:\Users\Robert\Desktop\SA-MP\gamemodes\crp.pwn(1546) : error 017: undefined symbol "cmd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |