#1

Ah, invalid function or declartion again!

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nameoff", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
return 1;
}
return 0;
}

C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(110) : warning 217: loose indentation
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(112) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Use pawn tags.
Here the problem.
pawn Код:
return 1;
}
   return 1;
  }
Reply
#3

Quote:
Originally Posted by MenaceX^
Use pawn tags.
Here the problem.
pawn Код:
return 1;
}
   return 1;
 }
Lol im that nooby that i dont know how to fix that? how?
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/nameoff", cmdtext, true, 10) == 0)
  {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
  }
  GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
  return 1;
}
  return 0;
}
Reply
#5

Thx
Reply
#6

No problem, mate.
Reply
#7

It's exactly what I said...
Reply
#8

Quote:
Originally Posted by MenaceX^
It's exactly what I said...
I know Thx to you too
But im a noob to sa-mp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)