20.12.2012, 17:43
Pessoal peguei esse codigo de um topico, que й para se mesmo que o player estiver OFF agente conseguir agendar cadeia para ele, qndo ele entrar ele ir dirito para cadeia (isso se estiver agendado)
O problema й que esta dando erro
Код:
if(strcmp(cmd, "/agendarcadeia", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 1) { if(PlayerInfo[playerid][pJogando] == 1) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб em modo de trabalho!(/trabalhar)"); new nomec[24]; tmp = strrest(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, "USO: /agendarcadeia [Nome_Sobrenome] [Tempo(em minutos] [Motivo]"); format(nomec, sizeof nomec, "%s", tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, "USO: /agendarcadeia [Nome_Sobrenome] [Tempo(em minutos] [Motivo]"); new money; money = strval(tmp); new motivoc[128]; tmp = strrest(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD1, "USO: /agendarcadeia [Nome_Sobrenome] [Tempo(em minutos] [Motivo]"); format(motivoc, sizeof motivoc, "%s", tmp); new str[512]; format(str, sizeof(str), "/Contas/%s.ini", resulta); if(!dini_Exists(str)) return SendClientMessage(playerid, COLOR_GRAD1, "[ERRO]: Esse player nгo estб cadastrado no servidor, verifique a ortografia. Lembre-se de colocar as letras maiъsculas e minusculas identicas ao nome dele!"); format(str, sizeof(str), "/Agendadas/%s.ini", resulta); if(dini_Exists(str)) return SendClientMessage(playerid, COLOR_GRAD1, "Jб existe uma cadeia agendada para este player! USE: /infoagendamento"); dini_Create(str); dini_IntSet(str, "Segundos", money*60); dini_Set(str, "Nome", nomec); format(str, sizeof(str), "/Agendadas/Motivos/%s.ini", result); new File: FileName = fopen(str, io_write); if(FileName) { fwrite(FileName, motivoc); fclose(FileName); } new nomeadm[24]; GetPlayerName(playerid, nomeadm, sizeof(nomeadm)); SendClientMessage(playerid, COLOR_GREEN, "===================================================================================="); SendClientMessage(playerid, COLOR_LIGHTRED, "Operaзгo realizada com sucesso: Agendamento de cadeia!"); format(str, sizeof(str), "Nome do jogador que teve uma cadeia agendada: %s", nomec); SendClientMessage(playerid, COLOR_LIGHTBLUE, str); if(money >= 60) format(str, sizeof(str), "Tempo que o jogador levou: %d horas e %d minutos (equivalente a %d minutos)", money/60, money-60, money); else format(str, sizeof(str), "Tempo que o jogador levou: %d minutos (equivalente a %d segundos)", money, money*60); SendClientMessage(playerid, COLOR_LIGHTBLUE, str); format(str, sizeof(str), "Motivo pelo qual o jogador foi preso: %s", motivoc); SendClientMessage(playerid, COLOR_LIGHTBLUE, str); format(str, sizeof(str), "Administrador que o prendeu: %s", nomeadm); SendClientMessage(playerid, COLOR_LIGHTBLUE, str); SendClientMessage(playerid, COLOR_LIGHTRED, "Caso deseje a qualquer momento excluir ou apenas visualisar, use /infoagendamento"); SendClientMessage(playerid, COLOR_GREEN, "===================================================================================="); } else { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й administrador!"); }
Код:
C:\Users\Felipe\Desktop\GTA server\pawno\include\seif_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented C:\Users\Felipe\Desktop\GTA server\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented C:\Users\Felipe\Desktop\GTA server\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(870) : error 004: function "SaveCars" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1807) : error 017: undefined symbol "GetPlayerOrg" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1814) : error 017: undefined symbol "GetPlayerOrg" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1854) : error 017: undefined symbol "GetName" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1855) : error 017: undefined symbol "GetName" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1856) : error 017: undefined symbol "GetName" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1906) : error 004: function "PlayerToPoint" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1916) : error 004: function "OnPlayerText" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(1916) : error 004: function "OnPlayerText" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(3296) : error 004: function "ClearChatbox" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(3387) : error 004: function "ClearChatbox" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(3404) : error 004: function "ClearChatbox" is not implemented C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4810) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4852) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4894) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4936) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4965) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(4994) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(5023) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(5052) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(5081) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(5129) : error 017: undefined symbol "IsNumero" C:\Users\Felipe\Desktop\[GM] BSC - oficial\samp03e_svr_R2_win32\gamemodes\MegaLife.pwn(5158) : error 017: undefined symbol "IsNumero" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.