22.07.2011, 19:03
Bem pessoal, estava a testar um novo gm mas ele me apresentou o seguinte erro na compilaзгo:
Segue as linhas do problema:
tentei arrumar o problema fazendo
Assim ele compilou, mas o servidor sempre estava a reiniciar.
Espero que poзam me ajudar
pawn Код:
D:\PCS-SAMP\Elite\ELITE.pwn(26358) : warning 219: local variable "Armour" shadows a variable at a preceding level
D:\PCS-SAMP\Elite\ELITE.pwn(27212) : error 004: function "NameTimer" is not implemented
D:\PCS-SAMP\Elite\ELITE.pwn(29039) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\PCS-SAMP\Elite\ELITE.pwn(29135) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[128];
NameTimer();
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
new tmpcar = GetPlayerVehicleID(i);
if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
{
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
format(string, sizeof(string), "~w~%s~n~~r~Produtos requeridos~w~: %d~n~~y~Preњo por Produto: ~w~: R$ %d ~n~~g~Fundos: ~w~: R$ %d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
{
if(SBizzInfo[h][sbOwned] == 1)
{
format(string, sizeof(string), "~w~%s~w~~n~dono : %s~n~extorsљo : %s~n~taxa: ~g~R$ %d ~w~Level: %d ~n~entrada /entrar",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevelNeeded]);
}
else
{
format(string, sizeof(string), "~w~%s~w~~n~a empresa estЃ a venda~n~preњo: ~g~R$ %d ~w~Level : %d ~n~para comprar a empresa: /comprarempresa",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
pawn Код:
new NameTimer[128];
Espero que poзam me ajudar