Math questions
#1

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"
Reply
#2

There is nothing like "Math questions" here. It's just that you have'nt defined COLOR_YELLOW and E_CASH
Reply
#3

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
Reply
#4

How do you expect help without provide the full code? And E_NUM1 is not defined.
Reply
#5

Yeah E_NUM1 is not defined. Define it like you defined E_NUM2,E_NUM3,E_NUM4 etc..
Reply
#6

#define E_NUM1 value
#define E_NUM2 value
etc.
Reply
#7

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);
Reply
#8

Hey Man Better Use Any Other Math System
Reply
#9

Quote:
Originally Posted by BlacK_RiDeR
Посмотреть сообщение
Hey Man Better Use Any Other Math System
like what?
Reply
#10

U Need it ?? If u need PM Me i will Give u ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)