Raised This Month: $ Target: $400
 0% 

Trouble With Indenting the Code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-26-2016 , 11:59   Trouble With Indenting the Code
Reply With Quote #1

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(MapName63);
    
    if(!
equal(MapNameMAP))
    {
    
        
formatexMapName127"Invalid Map, it should be: %s"MAP );
        
set_fail_stateMapName );
        
    }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.

Last edited by siriusmd99; 05-26-2016 at 12:07.
siriusmd99 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode