SA-MP Forums Archive
GameMode help ( repost ) - 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: GameMode help ( repost ) (/showthread.php?tid=521637)



GameMode help ( repost ) - BeesSi - 23.06.2014

Hi , my friend made me a gamemode , and he gave me only .amx file , I wanted to make a change so i asked him to give me the .pwn file , but he has lost his Virtual Private Machine ( VPs ) so i used DeAMX to decompile the .amx file
and i made the changes , but when i try to compile it i get these errors :

(58 ) : warning 217: loose indentation
(81 ) : warning 217: loose indentation
(88 ) : error 017: undefined symbol "glob11A8"
(88 ) : warning 215: expression has no effect
(88 ) : error 001: expected token: ";", but found "]"
(88 ) : error 029: invalid expression, assumed zero
(88 ) : fatal error 107: too many error messages on one line

Here is the script : http://pastebin.com/pM8LPFh9

Please help me


Re: GameMode help ( repost ) - Bek_Loking - 23.06.2014

I got rid of the warnings and one error, can't seem to shake off others.


Re: GameMode help ( repost ) - Eth - 23.06.2014

on the top of the script:
new glob11A8[500];

and it will fix all the errors/warning in line 88.


Re: GameMode help ( repost ) - Bek_Loking - 23.06.2014

Already tried it, here's what you get
C:\Users\%255252\Desktop\Learning\gamemodes\delete .pwn(90) : error 001: expected token: ",", but found "["
C:\Users\%%%\Desktop\Learning\gamemodes\delete.pwn (90) : error 029: invalid expression, assumed zero
C:\Users\%%\Desktop\Learning\gamemodes\delete.pwn( 90) : warning 215: expression has no effect
C:\Users\%%%MAR\Desktop\Learning\gamemodes\delete. pwn(90) : error 001: expected token: ";", but found "]"
C:\Users\*\Desktop\Learning\gamemodes\delete.pwn(9 0) : fatal error 107: too many error messages on one line


Re: GameMode help ( repost ) - Beckett - 24.06.2014

* * * * format(var1, 128, "{FF0000}Dibra-Gaming: {FFFFFF}%s tani лshtл njл %s", var0, glob11A8[glob0[playerid]][0]);
If you take a close look you will see 2 brackets there. l am on my phone right now can't direct It for you sorry.