change variable admin
#3

Quote:
Originally Posted by Shadow0707
Посмотреть сообщение
Changing rcon command to admin command is your decision

to fix the loose indentation add #pragma tabsize 0 above your script.
Oh my god. This is second time you have done, Shadow0707. DONT SUGGEST NEW PEOPLE for using pragma tabsize 0. God. Its a Bad practice to use tabsize 0. It will make your code messy and unreadable at some point. If you want your code messy, you are free to use it yourself. Dont suggest that to other people.

easiest solution is to just remove extra spaces within your command and add a tab or 4 spaces between tokens if they are joined together.

PHP код:
 CMD:event(playeridparams[])
{
    if(
PlayerInfo[playerid][Level] >= 4
    {
        if ( !
EvenTStats )return SendClientMessage playerid 0x00C0FFFF "{F81414}[ERROR]: The event is not open." ) ;
        
EvenTStats true;
        
TheEvenT[playerid] = true;
   
        
GetPlayerPos playerid EventoPos ] , EventoPos ] , EventoPos ] ) ;
        
GetPlayerFacingAngle playerid EventoPos ] ) ;
   
        
EventoInt GetPlayerInterior playerid ) ;
        
EventoVW GetPlayerVirtualWorld playerid ) ;
   
        return 
SendClientMessageToAll 0xFF00FFFF,"[ EVENT ] : EVENT OPEN BY ADMIN ENTER ' /EVENT ' !" ) ;
   }
    else return 
SendClientMessage playerid 0x00C0FFFF "You can not use this command..") ;

Reply


Messages In This Thread
error loose ident - by nbx2000 - 23.05.2018, 21:14
Re: error loose ident - by Shadow0707 - 24.05.2018, 00:42
Re: error loose ident - by GTLS - 24.05.2018, 08:04

Forum Jump:


Users browsing this thread: 1 Guest(s)