SA-MP Forums Archive
Please fix these errors for me - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please fix these errors for me (/showthread.php?tid=111608)



Please fix these errors for me - killdahobo99 - 02.12.2009

Can someone please fix these errors for me I am really fed up with this!

Код:
error 017: undefined symbol "udb_Exists"
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
I have no idea what the hell i'm doing wrong. Heres my script:

http://pastebin.com/f4031e6ee


Can someone please fix this for me so i can keep progressing on my script

EDIT:

Heres the line where the errors are (all of them)

LINE: 839
Код:
if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
Heres the whole thing.

Код:
public AntiJetpack( )
{
for (new i = 0; i < MAX_PLAYERS; i++)
  {
		if(IsPlayerConnected(i) && IsSpawned[i] == 1)
		{
     new pSpecialAction = GetPlayerSpecialAction(i);
     if (pSpecialAction == SPECIAL_ACTION_USEJETPACK && PlayerAdminLevel[i] != 1337)
		 {
     new inter;
		 inter = GetPlayerInterior(i);
     GetPlayerName(i, pname, 30);
     format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r",pname,i);
     SendClientMessageToAll(0xFF7F50AA, string);
     SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN DETECTED AS A CHEATER/HACKER");
     SendClientMessage(i,COLOR_RED,"YOU HAVE BEEN BANNED FROM THIS SERVER");
     SendClientMessage(i,COLOR_RED,"If you think this is a mistake. Visit www.sa-rpg.co.uk to appeal this ban");
     format(string, sizeof(string), "**(AUTO BAN)** %s(%d) Our Anti-Cheat has detected a hax0r Det:[JetPack] Int:[%d]",pname,i,inter);
     printf("%s", string);
     if(udb_Exists(PlayerName(i)) && PLAYERLIST_authed[i]) {
 		 dUserSetINT(PlayerName(i)).("nameban",1);
  	 }
     SetPlayerInterior(i,10);
     SetPlayerPos(i,219.6257,111.2549,999.0156);
     SetPlayerFacingAngle(i,2.2339);
     SetCameraBehindPlayer(i);
     Banning[i] = 1;
     SetTimer("BanPlayer",700,0);
    }
  }
 }
}



Re: Please fix these errors for me - lolumadd - 02.12.2009

Was it necessary to post your whole gamemode? Just put the code of where the error(s) is near.

Otherwise, you will go no help.


Re: Please fix these errors for me - killdahobo99 - 02.12.2009

Quote:
Originally Posted by lolumadd [cod5server.tk
]
Was it necessary to post your whole gamemode? Just put the code of where the error(s) is near.

Otherwise, you will go no help.
I edited it. Sorry about that. Hopefully someone could help now


Re: Please fix these errors for me - lolumadd - 02.12.2009

pawn Код:
if(udb_Exists(PlayerName(i) && PLAYERLIST_authed[i]) {



Re: Please fix these errors for me - killdahobo99 - 02.12.2009

Quote:
Originally Posted by lolumadd [cod5server.tk
]
pawn Код:
if(udb_Exists(PlayerName(i) && PLAYERLIST_authed[i]) {
Thanks for quick reply but still. Same errors

Код:
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(839) : error 017: undefined symbol "udb_Exists"
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(839) : warning 215: expression has no effect
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(839) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(839) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(839) : fatal error 107: too many error messages on one line
Also Same line 839


Re: Please fix these errors for me - lolumadd - 02.12.2009

pawn Код:
if(udb_Exists(PlayerName(i) && PLAYERLIST_authed[i])) {



Re: Please fix these errors for me - killdahobo99 - 02.12.2009

Quote:
Originally Posted by lolumadd [cod5server.tk
]
pawn Код:
if(udb_Exists(PlayerName(i) && PLAYERLIST_authed[i])) {
Same thing still


Re: Please fix these errors for me - Grim_ - 02.12.2009

pawn Код:
#include <dudb>
Put this right after the "#include <a_samp>" line.


Re: Please fix these errors for me - killdahobo99 - 02.12.2009

Quote:
Originally Posted by Swift_
pawn Код:
#include <dudb>
Put this right after the "#include <a_samp>" line.
I get these errors now:

Код:
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(840) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(840) : warning 215: expression has no effect
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(840) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(840) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Anuj2\Desktop\samp03asvr_R3_win32\gamemodes\KillDaHobo99.pwn(840) : fatal error 107: too many error messages on one line
I have no idea whats wrong now ......


Re: Please fix these errors for me - Grim_ - 02.12.2009

Show me lines 835 - 845 please.