03.08.2012, 01:18
Nгo sabia como fazer o comando, entгo peguei fragmentos do comando /relatorio, e tentei montar o comando, acabou dando estes erros, que por sinal, alguns nгo tem nada a ver com o comando, e nгo haviam antes. Cуdigo:
Erros:
Se possнvel, tentem me dizer como gerar um log para ser visto in-game todos os boletins jб registrados, obrigado.
pawn Код:
if(strcmp(cmd,"/boletimocorrencia",true)==0) || if(strcmd(cmd,"/bo",true)==0)
{
if (!PlayerToPoint(3.0, playerid, 253.9280,69.6094,1003.6406) && !PlayerToPoint(3.0, playerid, 259.2474,120.3977,1003.2188) && !PlayerToPoint(3.0, playerid, 198.9671,168.1982,1003.0234) && !PlayerToPoint(3.0, playerid, 234.8419,111.2194,1003.2257) && !PlayerToPoint(3.0, playerid, 326.8282,304.4166,999.1484) && !PlayerToPoint(3.0, playerid, 699.6252,-553.2016,-3.5950))
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб na recepзгo de nenhuma DP!");
return true;
}
else
{
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_GRAD2, "USE: /crime [Breve Descriзгo]");
return 1;
}
if(IsACop(playerid))
{
format(string, sizeof(string), "--> Boletim de Ocorrкncia de %s(%d): %s -->", PlayerName(playerid), playerid, (result));
ABroadCast(0xFFFF66FF,string,1);
SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio foi enviado com sucesso aos COPs, aguarde por uma resposta...");
}
}
pawn Код:
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\seif_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\pawno\include\servermoneyGM.inc(84) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(905) : error 004: function "SaveCars" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1841) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1848) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1888) : error 017: undefined symbol "GetName"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1889) : error 017: undefined symbol "GetName"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1890) : error 017: undefined symbol "GetName"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1940) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1950) : error 004: function "OnPlayerText" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(1950) : error 004: function "OnPlayerText" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(3276) : error 004: function "ClearChatbox" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(3367) : error 004: function "ClearChatbox" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(3384) : error 004: function "ClearChatbox" is not implemented
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(4570) : error 017: undefined symbol "IsAGang"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(4577) : error 017: undefined symbol "IsAGang"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(4596) : error 017: undefined symbol "IsAGang"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(4917) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(4959) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5001) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5043) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5072) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5101) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5130) : error 017: undefined symbol "IsNumero"
C:\Users\Shum\Desktop\Server 0.3e\gamemodes\BTL.pwn(5159) : error 017: undefined symbol "IsNumero"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.