18.07.2012, 23:25
HellSphinX's version is absolutely correct. To add some explanations of what he did, firstly the strcmp thing he already explained. The other problem was the wrong position of the return 1; in the code:
The return was outside the { } brackets, and so out of the if-code. So it is executed everytime, no matter if that command was typed, or not. And the return 1; means no other commands /other OnPlayerCommandText in other filterscripts and the gamemode, will be processed, thats why the other commands didnt work.
pawn Код:
if(strcmp(cmdtext,"/maps",true)==0)
{
GameTextForPlayer(playerid,"~w Maps by 18240 ]/edm] ]/aarace] ]/bikestunt]",2500,3);
}
return 1; // This return should be before the closing bracket } of the if-block