SA-MP Forums Archive
[FilterScript] Dynamic Gates - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Dynamic Gates (/showthread.php?tid=595522)

Pages: 1 2


Respuesta: Dynamic Gates - DarkChildren - 14.11.2016

No compille ! problem Has anyone compiled it?


Re: Dynamic Gates - AdmiNi - 30.12.2016

: error 001: expected token: "-identifier-", but found "-integer value-"
: warning 219: local variable "id" shadows a variable at a preceding level
: error 017: undefined symbol "foreach"
: error 029: invalid expression, assumed zero
: error 017: undefined symbol "i"
: fatal error 107: too many error messages on one line


HELP ME TO FIX THAT PLEASE


Re: Dynamic Gates - wisnuken - 20.12.2017

where the amx file?


Re: Dynamic Gates - Kaperstone - 20.12.2017

Quote:
Originally Posted by wisnuken
View Post
where the amx file?
Compile the filterscript to get it



OT:
Code:
#define FILTERSCRIPT
You don't have to define that it is a filterscript, its there because the blank code contains both code for a gamemode and filterscirpt
(OnFilterscriptInIt & OnGameModeInit)

Code:
EditingGateID[playerid] = -1;
        EditingGateType[playerid] = -1;
        for(new i; i < MAX_GATES; i++) HasGateAuth[playerid][i] = false;
Would suggest to create a default array and use memset to copy from it to the desired array than to use this with a 100 long loop;


You code pretty nicely, although I'd use a switch for the dialogresponse for better readability.


Re: Dynamic Gates - rfr - 20.12.2017

Quote:
Originally Posted by wisnuken
View Post
where the amx file?
in the programme click the run button to compile the .pwn