I don't really understand , I indented the code and anyway it's showing warning on compiler.
PHP Code:
#include <amxmodx>
new MAP[] = "mapname";
public plugin_precache()
{
new MapName[64]; get_mapname(MapName, 63);
if(!equal(MapName, MAP))
{
formatex( MapName, 127, "Invalid Map, it should be: %s", MAP );
set_fail_state( MapName );
}else{
server_cmd("mp_timelimit 9999");
server_cmd("mp_startmoney 16000");
}
}
P.S. LOL!, pasted here in my post after that copied back to .sma, compiled and no warning.
Can someone explain wtf is happening?
Maybe something wrong with notepad , with spaces , encoding ... Really don't understand...
P.S. 2. If someone wants to ask why i didn't read tutorials then I'll say that i found only one simple tutorial . Maybe there are others which obviously exist but there's something wrong with searching engine and i haven't found anything.