What's wrong with that code ?
#1

if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
{
format(string, sizeof(string), "(MEGAPHONE) %s: %s", sendername, result);
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Megaphone): %s",d,m,y,h,mi,s, sendername, result);

return 1;
}



Thanks for helping,
-Alex
Reply
#2

Quote:
Originally Posted by Dark734
Посмотреть сообщение
if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
{
format(string, sizeof(string), "(MEGAPHONE) %s: %s", sendername, result);
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Megaphone): %s",d,m,y,h,mi,s, sendername, result);

return 1;
}



Thanks for helping,
-Alex
Why don't you explain the problem you are having with the code?
Reply
#3

Which is the compiler error?
pawn Код:
if(strcmp(cmd, "/megaphone", true) == 0 || strcmp(cmd, "/m", true) == 0)
{
format(string, sizeof(string), "(MEGAPHONE) %s: %s", sendername, result);
ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW);
format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (Megaphone): %s",d,m,y,h,mi,s, sendername, result);//This line doesn't do anything (you should delete the line or add something)

return 1;
}
Reply
#4

Woww man,it is totally fucked if you didn't defined the

result,sendername,tmp etc
Too short
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)