Damage erro
#2

the identifer of a global variable has to be unique.

meaning something like
pawn Код:
#include    "a_samp"

main(){}

new random_stuff;

public OnGamemodeInit()
{
    new random_stuff;
   
    return 1;
}
will throw the same warning.
"warning 219: local variable "random_stuff" shadows a variable at a preceding level"

this means that somewhere in your script is a variable by the name "playerid"

search for it and get rid of it.
especially "playerid" as identifer... really bad choice if it's a global one,
as most of the callbacks contain a "playerid" param.

also, generating too much global variables isn't good.
Stuff will get messy after some time.
Try to stay local & use pointers wherever you can

also, i suggest using a switch instead of these endless control structures
Reply


Messages In This Thread
Damage erro - by Gogeta101 - 04.09.2014, 18:39
Re: Damage erro - by CutX - 04.09.2014, 19:17
Re: Damage erro - by Gogeta101 - 05.09.2014, 17:21
Re: Damage erro - by CutX - 05.09.2014, 17:50

Forum Jump:


Users browsing this thread: 4 Guest(s)