Problem Robbery system - 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: Problem Robbery system (
/showthread.php?tid=508294)
Problem Robbery system -
Cr3dO - 21.04.2014
https://sampforum.blast.hk/showthread.php?tid=482079
PHP код:
C:\Documents and Settings\pc\Desktop\robing.pwn(28) : warning 235: public function lacks forward declaration (symbol "RobbingTD")
C:\Documents and Settings\pc\Desktop\robing.pwn(32) : error 017: undefined symbol "TDInfo"
C:\Documents and Settings\pc\Desktop\robing.pwn(32) : warning 215: expression has no effect
C:\Documents and Settings\pc\Desktop\robing.pwn(32) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\pc\Desktop\robing.pwn(32) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pc\Desktop\robing.pwn(32) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
line 32 if(TDInfo[playerid][tdRobbingTD0] == 0)
If you can fix the errors and co ladies give a new link?
Re: Problem Robbery system -
Bingo - 21.04.2014
Add this,
pawn Код:
enum tdInfo
{
tdRobbingTD0,
tdRobbingTD1,
tdRobbingTD2
};
new TDInfo[MAX_PLAYERS][tdInfo];
Re: Problem Robbery system -
Cr3dO - 21.04.2014
PHP код:
C:\Documents and Settings\pc\Desktop\robing.pwn(30) : warning 235: public function lacks forward declaration (symbol "RobbingTD")
C:\Documents and Settings\pc\Desktop\robing.pwn(37) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\robing.pwn(80) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\robing.pwn(86) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\robing.pwn(92) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\robing.pwn(107) : error 017: undefined symbol "RobbingTD3"
C:\Documents and Settings\pc\Desktop\robing.pwn(107) : warning 215: expression has no effect
C:\Documents and Settings\pc\Desktop\robing.pwn(107) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\pc\Desktop\robing.pwn(107) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pc\Desktop\robing.pwn(107) : fatal error 107: too many error messages on one line
line 107 else if(hBankRobbery[p] == 5) TextDrawSetString(RobbingTD3[p], "~w~IIIII");
Re: Problem Robbery system -
PrinceKumar - 21.04.2014
i think you haven't forward your function so it is giving warning 235 first use forward RobbingTD(); to close this warning, you need to define RobbingTD3 or use new RobbingTD3
Re: Problem Robbery system -
Cr3dO - 21.04.2014
now
PHP код:
C:\Documents and Settings\pc\Desktop\robing.pwn(108) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pc\Desktop\robing.pwn(108) : warning 215: expression has no effect
C:\Documents and Settings\pc\Desktop\robing.pwn(108) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\pc\Desktop\robing.pwn(108) : error 029: invalid expression, assumed zero
C:\Documents and Settings\pc\Desktop\robing.pwn(108) : fatal error 107: too many error messages on one line
else if(hBankRobbery[p] == 4) TextDrawSetString(RobbingTD2[p], "~w~IIII");
Re : Problem Robbery system -
Ramoboss - 21.04.2014
[p] is for playerid ?
if it's that, try to replace [p] by [playerid]
if it's work, you have your solution
Re: Problem Robbery system -
Cr3dO - 22.04.2014
If you can fix the errors and co ladies give a new link?