.pwn(19456) : warning 217: loose indentation
pwn(50639) : warning 203: symbol is never used: "label"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 11024 bytes
Code size: 2099176 bytes
Data size: 2656876 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4519 cells (18076 bytes)
Total requirements: 4783460 bytes
2 Warnings.
GetPlayerName(playerid, sendername, sizeof(sendername));
//cmd complrto
if (strcmp(cmd, "/ma", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
MSGPLAYER(playerid, COLOR_GREY, "{00FFFF}Vocк nгo estб Autorizado a Usar este Comando!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{FF7256}((Administrador)) Olб!!,Posso Ajudar?", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
MSGPLAYER(playerid, COLOR_GRAD1, " Vocк nгo estб logado !");
}
}
return 1;
}
#pragma tabsize 0
Ponha no topo do GM:
Em relaзгo ao 'loose indentation': pawn Код:
|
Entгo trate de identar.
E mesmo assim, esse GM jб й confuso, hб coisas desnecessбrias nele. |
if( strcmp(cmd, "/ma", true ) == 0 )
{
if( IsPlayerConnected( playerid ) )
{
if( PlayerInfo[ playerid ][ pAdmin ] == 1)
{
SendClientMessage( playerid, COLOR_GREY, "[ERRO] Vocк nгo tem permissгo para usar este comando!" );
return 1;
}
GetPlayerName( playerid, sendername, sizeof( sendername ) );
new length = strlen(cmdtext);
while ( ( idx < length ) && ( cmdtext[ idx ] <= ' ' ) )
{
idx++;
}
new offset = idx;
new result[ 64 ];
while ( ( idx < length ) && ( ( idx - offset ) < ( sizeof( result ) - 1 ) ) )
{
result[ idx - offset ] = cmdtext[ idx ];
idx++;
}
result[ idx - offset ] = EOS;
if(!strlen( result ) )
{
SendClientMessage( playerid, COLOR_GRAD, "USE: /ma [Texto]" );
return 1;
}
if(strcmp( result,"1", true ) == 0) { result = " Olб, Posso ajudar-lo?"; }
if(strcmp( result,"2", true ) == 0) { result = " A Staff agradeзe, tenha um bom jogo !"; }
if(strcmp( result,"3", true ) == 0) { result = " Desculpe mais nгo posso ajudar-lo, Isso nгo й comigo.. :("; }
format( string, sizeof( string ), "((Administrador))%s: %s", sendername, ( result ) );
ProxDetector( 30.0, playerid, string, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT );
}
return 1;
}
@Sr.Pekeno
Vlw manim, o meu й mais Simples de usar so Digitar /ma que apareзe a mensagem ^^, oque eu preciso mesmo й saber porque meu Serv nгo estб querendo abrir. @Edit Alguem sabe porque meu samp_serv nгo ta querendo abrir ? tipo, gm ta sem warnning sem erro nenhum, pasta tudo normal ( eu acho ) mais mesmo assim, ele nгo liga, ele liga e desliga '-' Ajudem por favor ^^ |