SA-MP Forums Archive
Help me please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please (/showthread.php?tid=639405)



Help me please - Adanilton - 17.08.2017

Hi, I'm wrong with my GM so I came to ask for help from you.
Код:
C:\Users\Adanilton Freire\Documents\Servidor\gamemodes\RZ.pwn(13102) : warning 217: loose indentation
C:\Users\Adanilton Freire\Documents\Servidor\gamemodes\RZ.pwn(13103) : warning 217: loose indentation
C:\Users\Adanilton Freire\Documents\Servidor\gamemodes\RZ.pwn(13104) : warning 217: loose indentation
C:\Users\Adanilton Freire\Documents\Servidor\gamemodes\RZ.pwn(13105) : warning 217: loose indentation
C:\Users\Adanilton Freire\Documents\Servidor\gamemodes\RZ.pwn(16119) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          22068 bytes
Code size:          2748436 bytes
Data size:          8513488 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:11300376 bytes

5 Warnings.
This error starts from line 13103 and goes to 13105 are four following errors
Код:
            SendClientMessageToAll(-1, string);
	SCM(playerid,-1,"Cuidado com o que escreve... Lupuens MANDA! ");
Kick(playerid);
			return 0;
The last error and the end line
Код:
public OnGameModeInit()

{

LoadNPCs();

mysql_log(LOG_ERROR | LOG_WARNING);

EnConteo = false;

    ArmasEstado = 1;
Sorry if you hear English mistakes I'm Brazilian and I did this through the translator, I'm waiting for your help.


Re: Help me please - GaByM - 17.08.2017

This warning means that you don't have the same indentation (one line starts at 4 spaces from left, the next one starts at 8 spaces etc..)
It is very easy, just do this:

PHP код:
    SendClientMessageToAll(-1string);
    
SCM(playerid,-1,"Cuidado com o que escreve... Lupuens MANDA! ");
    
Kick(playerid);
    return 
0
and

PHP код:
public OnGameModeInit()
{
    
LoadNPCs();
    
mysql_log(LOG_ERROR LOG_WARNING);
    
EnConteo false;
    
ArmasEstado 1



Re: Help me please - Adanilton - 17.08.2017

Quote:
Originally Posted by GaByM
Посмотреть сообщение
This warning means that you don't have the same indentation (one line starts at 4 spaces from left, the next one starts at 8 spaces etc..)
It is very easy, just do this:

PHP код:
    SendClientMessageToAll(-1string);
    
SCM(playerid,-1,"Cuidado com o que escreve... Lupuens MANDA! ");
    
Kick(playerid);
    return 
0
and

PHP код:
public OnGameModeInit()
{
    
LoadNPCs();
    
mysql_log(LOG_ERROR LOG_WARNING);
    
EnConteo false;
    
ArmasEstado 1
Thank you


Re: Help me please - IlanZ - 18.08.2017

This warning occurs when your code is unorganized (such as rows). If you are in doubt use this site:

http://tabulador.medianewsonline.com/