local variable "playerid" shadows a variable at a preceding level
#1

Please heelp

Reply
#2

On line 1534 you're trying to define 'playerid' and it's already defined as a global variable
Reply
#3

Why are you attempting to loop through all players in OnPlayerUpdate? OnPlayerUpdate gets called with all players regardless, so you can remove the loop:

pawn Код:
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
Also don't forget to remove the closing brace, along with fixing the indentation.
Reply
#4

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)