[Ajuda] Sistema de trem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sistema de trem (
/showthread.php?tid=622443)
Sistema de trem -
SukMathcuck - 22.11.2016
E aн, estou tentando criar um sistema de trem, mais atй agora o que deu foi erros, problemas, ae, alguйm sabe o que posso fazer para consertar?
Pensei em colocar talvez: AddStaticVehicle(537, 788.1348, -1342.6814, 0.0995, 47.8624, -1, -1);
Код HTML:
new Float: RandomTrain[][6] = {
// Positions, (ModelID, X, Y, Z and Facing Angle, Ocupation)
//0 -> nгo existe
{ 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0 }
};
public GetFreeMaquinista()
{
new i;
//0 -> nгo existe
while (RandomTrain[rand][5] && i <= sizeof(RandomTrain))
{
new rand = random(sizeof(RandomTrain));
i++;
}
else if (i > sizeof(RandomTrain))
{
}
}
public OnMaquistaInit()
{
new vaga = GetFreeMaquinista();
// Add a Train to the game if are a place empty
if (vaga)
{
//CreateVehicle(RandomTrain[rand][0], RandomTrain[rand][1], RandomTrain[rand][2], RandomTrain[rand][3], RandomTrain[rand][4], 0, 0, 0);
//AddStaticVehicleEx
RandomTrain[rand][5] = 1;
//AttachTrailerToVehicle
//PutPlayerInVehicle
return 1;
}
else return 0;
Код:
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(33) : warning 213: tag mismatch
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(36) : warning 235: public function lacks forward declaration (symbol "GetFreeMaquinista")
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(41) : error 017: undefined symbol "rand"
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(43) : warning 204: symbol is assigned a value that is never used: "rand"
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(46) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(46) : warning 215: expression has no effect
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(46) : error 001: expected token: ";", but found "if"
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(52) : warning 235: public function lacks forward declaration (symbol "OnMaquistaInit")
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(54) : warning 209: function "GetFreeMaquinista" should return a value
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode TDM\filterscripts\Sistema de trem.pwn(61) : error 017: undefined symbol "rand"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Sistema de trem -
AdrianoStk - 23.11.2016
Que k7 й esse?