Math questions - 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: Math questions (
/showthread.php?tid=381199)
Math questions -
JEkvall95 - 28.09.2012
I added this to my gamemode file under
public OnGameModeInit ()
Код:
new msg[128];
format(msg,sizeof(msg),"Solve for %i$ --> %i + %i - %i + %i = ?",E_CASH,E_NUM1,E_NUM2,E_NUM3,E_NUM4);
SendClientMessageToAll(COLOR_YELLOW,msg);
print(msg);
and I got this 2 errors
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(498) : error 017: undefined symbol "E_CASH"
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(499) : error 017: undefined symbol "COLOR_YELLOW"
Re: Math questions -
Mr.Anonymous - 28.09.2012
There is nothing like "Math questions" here. It's just that you have'nt defined
COLOR_YELLOW and
E_CASH
Re: Math questions -
JEkvall95 - 28.09.2012
and then I got this errors
pawn Код:
format(msg,sizeof(msg),"MathBot: Solve this problem for %i$ --> %i + %i - %i + %i = ?",E_CASH,E_NUM1,E_NUM2,E_NUM3,E_NUM4);
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(501) : error 029: invalid expression, assumed zero
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(501) : error 017: undefined symbol "E_NUM1"
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(501) : error 029: invalid expression, assumed zero
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(501) : fatal error 107: too many error messages on one line
Re: Math questions -
OnlyOne - 28.09.2012
How do you expect help without provide the full code? And E_NUM1 is not defined.
Re: Math questions -
Mr.Anonymous - 28.09.2012
Yeah
E_NUM1 is not defined. Define it like you defined
E_NUM2,
E_NUM3,
E_NUM4 etc..
Re: Math questions -
KingHual - 28.09.2012
#define E_NUM1 value
#define E_NUM2 value
etc.
Re: Math questions -
JEkvall95 - 28.09.2012
what does this errors meands then?
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(502) : error 029: invalid expression, assumed zero
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(503) : error 029: invalid expression, assumed zero
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(503) : warning 215: expression has no effect
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(503) : error 001: expected token: ";", but found ")"
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(503) : error 029: invalid expression, assumed zero
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(503) : fatal error 107: too many error messages on one line
pawn Код:
format(msg,sizeof(msg),"Solve for %i$ --> %i + %i - %i + %i = ?",E_CASH,E_NUM1,E_NUM2,E_NUM3,E_NUM4);
SendClientMessageToAll(COLOR_YELLOW,msg);
Re: Math questions -
BlacK_RiDeR - 28.09.2012
Hey Man Better Use Any Other Math System
Re: Math questions -
JEkvall95 - 28.09.2012
Quote:
Originally Posted by BlacK_RiDeR
Hey Man Better Use Any Other Math System
|
like what?
Re: Math questions -
BlacK_RiDeR - 28.09.2012
U Need it ?? If u need PM Me i will Give u ..