26 errors that doesn't make sense.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 26 errors that doesn't make sense.. (
/showthread.php?tid=461990)
26 errors that doesn't make sense.. -
Don_Cage - 04.09.2013
I get all kinds of errors when I make this.
pawn Код:
new string2[64];
for(new h = 199; h < sizeof(CarInfo); h++)
{
format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
if(dini_Exists(string2))
{
ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],-1);
if(CarInfo[h][cPaintjob] != 999)
{
ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
}
SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
SetVehicleModifications(h);
}
format(string2, sizeof(string2), "LARP/Vehicles/SalesCarID%d.ini",h);
if(dini_Exists(string2))
{
salescar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],-1);
if(CarInfo[h][cPaintjob] != 999)
{
ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
}
SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
SetVehicleModifications(h);
}
}
What am I doing wrong?
Re: 26 errors that doesn't make sense.. -
Konstantinos - 04.09.2013
Posting the errors, the lines and where you add the above code would be nice.
Re: 26 errors that doesn't make sense.. -
Don_Cage - 04.09.2013
I added it under OnGameModeInit and the errors have is nothing about the code. I'm guessing on a missing/to many brackets..
pawn Код:
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(3617) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(3643) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(3747) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(3776) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4309) : error 017: undefined symbol "GetVehicleName"
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4309) : warning 202: number of arguments does not match definition
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4325) : error 004: function "IsASalesVehicle" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4424) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4429) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4434) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(4439) : error 004: function "SafeSetPlayerPos" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(5255) : error 004: function "ABroadCast" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(5257) : error 004: function "ABroadCast" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(5297) : error 004: function "ABroadCast" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(5299) : error 004: function "ABroadCast" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6423) : error 004: function "ClearChatbox" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6441) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6446) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6468) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6479) : error 004: function "OnPlayerUpdateEx" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6490) : error 004: function "ClearChatbox" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6498) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6500) : error 004: function "SendAdminMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6617) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6639) : error 004: function "SendIRCMessage" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6681) : error 004: function "SavePapers" is not implemented
C:\Users\Namn\Desktop\Server\gamemodes\larp.pwn(6956) : error 004: function "OOCOff" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Re: 26 errors that doesn't make sense.. -
Konstantinos - 04.09.2013
Are you sure you have those functions to your script? If so, then there are some tools that check if the opened braces do match with the closed braces. ****** it or use the search button, I'm sure you'll find results. Just to make sure!
Re: 26 errors that doesn't make sense.. -
DanishHaq - 04.09.2013
So you're saying when you remove that code, that all the errors disappear?
Re: 26 errors that doesn't make sense.. -
iZN - 04.09.2013
This might help you:
https://sampforum.blast.hk/showthread.php?tid=322839
Re: 26 errors that doesn't make sense.. -
Don_Cage - 04.09.2013
Thank you for that tip! It forgot to close a public but thanks to the bracket finder I could fix my problem. +REP for you my friend!