[HELP] How can I adapt this filterscript inside a gamemode?
#1

Hello, this is the filterscript I'm trying to put inside my gamemode, but it gives me that error:
Код:
error 017: undefined symbol "playerid"
And when I move the following section to OnPlayerConnect...
Код:
new
    Text: Registro[12],
    Text: Dicas[15],
    Text: Info[15],
    PlayerText: PlayerRegistro[playerid][MAX_PLAYERS][6];
It gives me the following errors:
Код:
: error 017: undefined symbol "Dicas"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line
I hope you can help me.
Reply
#2

Can you post a link to this filterscript? It's the best way to understand what is necessary to do.
Reply
#3

Quote:
Originally Posted by iHollyZinhO
Посмотреть сообщение
Can you post a link to this filterscript? It's the best way to understand what is necessary to do.
Sorry, I forgot that, here it is!

https://pastebin.com/5MU0nCMk
Reply
#4

All you need to do is hook all the callbacks and make it an include.
Reply
#5

In this filterscript someone used Ctrl + H with PlayerRegistro and a wrong variable (playerid) appeared as an index.

I change somethings to fix this bug: https://pastebin.com/atjdM6Es
Reply
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
All you need to do is hook all the callbacks and make it an include.
Thank you!

Quote:
Originally Posted by iHollyZinhO
Посмотреть сообщение
Vi que vocк й de Sгo Paulo, entгo vou escrever em portuguкs mesmo kk.

Entгo, nesse filterscript foi dado Ctrl + H no TextDraw PlayerRegistro e acabou surgindo vбrios PlayerRegistro[playerid], sendo que playerid nгo estava declarado naquele escopo.

Eu fiz as devidas correзхes: https://pastebin.com/atjdM6Es
Obrigado! Escrevi em inglкs porque voltei a programar agora e nгo sei como estб a comunidade brasileira no SA-MP hoje em dia kkkkk

REP + BOTH
Reply
#7

Yeah I should add after hooking callbacks the next step is getting it to work with your gamemode but typically most fs's compiled into a gamemode when configured correctly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)