SA-MP Forums Archive
[HELP]Help with a couple errors - 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: [HELP]Help with a couple errors (/showthread.php?tid=404129)



[HELP]Help with a couple errors - xSiiiLenTx - 01.01.2013

pawn Код:
new AutoMessages[][] = { // Messages need to be changed/added - Voltage
    "Thank you for playing on National Gaming Roleplay!",
    "You are currently playing on 1.0.0.0a(lpha)!  Be sure to sign up to our forums!",
    "Want to donate to get cool things In-Game?  Contact 'Jim' or 'Liam' on the forums!",
    "Please do not ask for admin!  You will get punished!",
);
Line 47 is ");"

C:\Gebruikers\Shehab\Downloadens\National Gaming RP\gamemodes\NGRP.pwn(47) : error 029: invalid expression, assumed zero
C:\Gebruikers\Shehab\Downloadens\National Gaming RP\gamemodes\NGRP.pwn(47) : error 008: must be a constant expression; assumed zero

any help?


Re: [HELP]Help with a couple errors - Infinity90 - 01.01.2013

pawn Код:
new AutoMessages[][] = { // Messages need to be changed/added - Voltage
    "Thank you for playing on National Gaming Roleplay!",
    "You are currently playing on 1.0.0.0a(lpha)!  Be sure to sign up to our forums!",
    "Want to donate to get cool things In-Game?  Contact 'Jim' or 'Liam' on the forums!",
    "Please do not ask for admin!  You will get punished!"
);



AW: [HELP]Help with a couple errors - IPrototypeI - 01.01.2013

Quote:
Originally Posted by xSiiiLenTx
Посмотреть сообщение
pawn Код:
new AutoMessages[][] = { // Messages need to be changed/added - Voltage
    "Thank you for playing on National Gaming Roleplay!",
    "You are currently playing on 1.0.0.0a(lpha)!  Be sure to sign up to our forums!",
    "Want to donate to get cool things In-Game?  Contact 'Jim' or 'Liam' on the forums!",
    "Please do not ask for admin!  You will get punished!",
);
Line 47 is ");"

C:\Gebruikers\Shehab\Downloadens\National Gaming RP\gamemodes\NGRP.pwn(47) : error 029: invalid expression, assumed zero
C:\Gebruikers\Shehab\Downloadens\National Gaming RP\gamemodes\NGRP.pwn(47) : error 008: must be a constant expression; assumed zero

any help?
PHP код:
new AutoMessages[][] = { // Messages need to be changed/added - Voltage
    
"Thank you for playing on National Gaming Roleplay!",
    
"You are currently playing on 1.0.0.0a(lpha)!  Be sure to sign up to our forums!",
    
"Want to donate to get cool things In-Game?  Contact 'Jim' or 'Liam' on the forums!",
    
"Please do not ask for admin!  You will get punished!"
}; 
you have forgotten to remove one , and to change the ); to };


Re: [HELP]Help with a couple errors - xSiiiLenTx - 01.01.2013

Thanks!


Re: [HELP]Help with a couple errors - Infinity90 - 01.01.2013

Ahh yes, my bad haha, need to change my zoom, looks like a bracket ._.


AW: Re: [HELP]Help with a couple errors - IPrototypeI - 01.01.2013

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
Ahh yes, my bad haha, need to change my zoom, looks like a bracket ._.
Infinity it's late 1.48 AM (in germany)
you can say that you are tired


Re: [HELP]Help with a couple errors - xSiiiLenTx - 01.01.2013

I seem to have another error in my server exec.
[02/01/2013 01:48:37] Script[gamemodes/NGRP.amx]: Run time error 19: "File or function is not found"

?? I compiled it and stuff...


AW: [HELP]Help with a couple errors - IPrototypeI - 02.01.2013

Maybe you forget some plugins or called natives which are not exist.