04.03.2012, 00:36
(
Последний раз редактировалось kratty; 04.03.2012 в 03:12.
)
Boa Noite pessoal, estou aprendendo sobre Pawn, comecei a pesquisar alguns Gm's, editar, adicionar novas funзхes.. Li varios tutoriais, mais o que me deixa muito confuso й o sobre alguns detalhes...
Comecei editando Gm RPG, sei que й mais dificil, mais й o Gm que prefiro me basear.
Gostaria de uma ajuda de alguйm, pois tentei Compilar um certo Gm e apareceu alguns erros. \/
Esses sгo os Erros:
Percebi que os 6 primeiros Warnings sгo a include dutils.inc procurei essa include e estava na pasta certa, mas mesmo assim da esses warnings :S
Agora os Erros ja resolvi alguns, esses que ficaram nгo consegui arrumar, tentei e nao descobri o motivo do erro.
Comando:
Linha - 3411
Comando:
Linha - 3594
Comando:
Linha - 7148
Linha - 7152
Linha - 7156
Linha - 7160
Linha - 7164
Comando:
Linha - 7385
Comando:
Linha - 7393
Comando:
Linha - 7452
Comando:
Linha - 9213
Linha - 9215
Linha - 9221
Quem puder me ajudar, iria agradecer com +1 Rep.. Se puder explicar o que aconteceu, seria ainda melhor
Obrigado desde ja!
@Edit
Mals, Agora esta com Cуd Pawn
Comecei editando Gm RPG, sei que й mais dificil, mais й o Gm que prefiro me basear.
Gostaria de uma ajuda de alguйm, pois tentei Compilar um certo Gm e apareceu alguns erros. \/
Esses sгo os Erros:
Код:
C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "hour" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "minute" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "second" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "day" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "month" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\pawno\include\dutils.inc(53) : warning 219: local variable "year" shadows a variable at a preceding level C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(3411) : error 004: function "ClearChatbox" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(3594) : error 004: function "ClearChatbox" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7148) : error 004: function "RemoveBarraca" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7152) : error 004: function "RemoveParedao" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7156) : error 004: function "RemoveRoadblock" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7160) : error 004: function "RemoveRoadPregos" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7164) : error 004: function "RemoveRoadCones" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7385) : error 017: undefined symbol "IsACop" C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7393) : error 017: undefined symbol "IsAMec" C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(7452) : error 004: function "ClearChatbox" is not implemented C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9213) : error 049: invalid line continuation C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9215) : error 017: undefined symbol "IsAPm" C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9221) : error 029: invalid expression, assumed zero C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9221) : warning 215: expression has no effect C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9221) : error 001: expected token: ";", but found "if" C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9221) : error 017: undefined symbol "IsAPcCar" C:\Users\Alex Sander\Downloads\SAMP SERVER 0.3D\gamemodes\TESTE.pwn(9221) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 16 Errors.
Agora os Erros ja resolvi alguns, esses que ficaram nгo consegui arrumar, tentei e nao descobri o motivo do erro.
Comando:
pawn Код:
if(dialogid == 900)
{
if(response == 1)
{
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1558.7385,-1675.7007,16.1953);
SetPlayerCameraPos(playerid, 1506.7966,-1645.9325,22.3203);
SetPlayerCameraLookAt(playerid, 1537.1453,-1670.2620,12.6740);
ClearChatbox(playerid, 100);
ShowPlayerDialog(playerid, 901, DIALOG_STYLE_MSGBOX, ".:: Informaзхes Bбsicas ::.", "-Este й um servidor de RPG, Simulaзгo de vida real.\n\n\n-Nуs estamos absolutamente interessados em jogadores que nгo faзam DM e DB.\n\n\n-Vocк Nгo mata ninguem na vida real, nao rouba ninguem na vida real.\n\n-Se vocк for um civil, jogue como um civil. Se for gangster... Ai Sim, Poderб Matar e Roubar.\n\n\n-Mais Sem Matar Civis ou Pessoas Que Nгo Fizeram Nada Com Vocк.", "Avanзar", "Cancelar");
PlayerInfo[playerid][pEmprego] = 0; //Desbuga o emprego
return 0;
}
else if(response == 0)
{
Kick(playerid);
return 0;
}
return 0;
}
pawn Код:
ClearChatbox(playerid, 100);
Comando:
pawn Код:
if(dialogid == 911 )
{
if(response == 1)
{
SetPlayerCameraPos(playerid,1519.4929,-1675.6611,21.0900);
SetPlayerCameraLookAt(playerid,1557.2080,-1675.8904,16.1953);
TogglePlayerControllable(playerid, 1);
ClearChatbox(playerid, 100);
TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1;
gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
SetPlayerVirtualWorld(playerid,0);
MedicBill[playerid] = 0;
SetPlayerSpawn(playerid);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pConta] = 1000;
PlayerInfo[playerid][pCreditos] += 20;
PlayerPlayMusic(playerid);
RegistrationStep[playerid] = 4;
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 200000);
GameTextForPlayer(playerid, "~w~Chame Um Admin Para Te Ajudar ~n~~b~ /relatorio ", 3000, 3);
SendClientMessage(playerid, COLOR_WHITE, "Bem Vindo ao Brasil Web Edition RPG v2.0 ® ");
SendClientMessage(playerid, 0x90B6FFAA, "Digite /equipe para ver a equipe do BWE.");
SendClientMessage(playerid, 0xC1FF08AA, "==============================================");
SendClientMessage(playerid, COLOR_WHITE, "Vб ao D.E.T.R.A.N, e tire sua carteira de motorista !");
SetPlayerCheckpoint(playerid, 961.7795,-944.9980,40.3419,8.0);//detran
SendClientMessage(playerid, 0xC1FF08AA, "==============================================");
return 0;
}
else if(response == 0)
{
Kick(playerid);
return 0;
}
return 0;
}
pawn Код:
ClearChatbox(playerid, 100);
Comando:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
/* if(emguerra[playerid] == 1)
{
format(gstring, 128, "%s saiu da zona de guerra!", PlayerName(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
emguerra[playerid] = 0;
}*/
IsInBus[playerid] = 0;
KillTimer(tempotd[playerid]);
CPorder[playerid] = 0;
new caller = Mobile[playerid];
OnPlayerSave(playerid);
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "A ligaзгo caiu...");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
if(HireCar[playerid] > 0)
{
VTrancado[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SetVehicleToRespawn(HireCar[playerid]);
HireCar[playerid] = 0;
}
if (PlayerInfo[playerid][pBarraca] != 0)
{
RemoveBarraca(playerid);
}
if (PlayerInfo[playerid][pParedao] != 0)
{
RemoveParedao(playerid);
}
if(pRoadblock[playerid] != 0)
{
RemoveRoadblock(playerid);
}
if(SpikeInfo[playerid][sCreated] != 0)
{
RemoveRoadPregos(playerid);
}
if(pRoadCones[playerid] != 0)
{
RemoveRoadCones(playerid);
}
pawn Код:
RemoveBarraca(playerid);
pawn Код:
RemoveParedao(playerid);
pawn Код:
RemoveRoadblock(playerid);
pawn Код:
RemoveRoadPregos(playerid);
pawn Код:
RemoveRoadCones(playerid);
Comando:
pawn Код:
if(IsACop(playerid))
{
if(EmpregoDuty[playerid] == 2) { Copsronda -= 1; }
}
pawn Код:
if(IsACop(playerid))
Comando:
pawn Код:
else if(IsAMec(playerid))
{
if(EmpregoDuty[playerid] == 1) { Mechanics -= 1; }
}
pawn Код:
else if(IsAMec(playerid))
Comando:
pawn Код:
if(PlayerInfo[playerid][pTut] == 0)
{
gNews[playerid] = 1; gFam[playerid] = 1; TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 8);
SetPlayerVirtualWorld(playerid,playerid+1);
SendClientMessage(playerid, COLOR_WHITE, "Seja Bem Vindo ao Brasil Web Edition - RPG v2.0");
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"Brasil Web Edition - Registro","{00EE00}Seja Bem Vindo !\n{5CACEE}Qual o seu sexo ?\n ","Masculino","Feminino");
PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
}
pawn Код:
ClearChatbox(playerid, 8);
Comando:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{// 38 / 49 / 56 = SS
new newcar = GetPlayerVehicleID(playerid);
new oldcar = gLastCar[playerid];
new HouseCar = PlayerInfo[playerid][pPHousekey]+totalveiculos;
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
new carid=GetVehicleModel(newcar);
if(carid == 481 || carid == 509 || carid == 510) { }
else
{//////////////////////////////////CARROS DE ORGANIZACOES\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
if(IsAPmCar(newcar))
{
if(!IsAPm(playerid))
{
SendClientMessage(playerid, COR_PM, "Vocк nгo faz parte da Policia Militar, por isso nгo tem a chave desse veнculo!");
RemovePlayerFromVehicleEx(playerid);
}
}
else if(IsAPcCar(newcar))
{
if(!IsAPc(playerid))
{
SendClientMessage(playerid, COR_PC, "Vocк nгo faz parte da Policia Civil, por isso nгo tem a chave desse veнculo!");
RemovePlayerFromVehicleEx(playerid);
}
}
pawn Код:
if(IsAPmCar(newcar))
pawn Код:
if(!IsAPm(playerid))
pawn Код:
else if(IsAPcCar(newcar))
Quem puder me ajudar, iria agradecer com +1 Rep.. Se puder explicar o que aconteceu, seria ainda melhor
Obrigado desde ja!
@Edit
Mals, Agora esta com Cуd Pawn