warning
#1

-------------------
Reply
#2

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(!Logged[playerid])) // playerid is probably missed, it must be there IMO
{
GameTextForPlayer(playerid, "uzsiregistruok arba prisijunk bl", 5000,4);
return 0;
}
return 1;
}
Reply
#3

Код:
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 028: invalid subscript (not an array or too many subscripts): "Logged"
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : warning 215: expression has no effect
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 029: invalid expression, assumed zero
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(Logged[playerid] != 1)
  {
     GameTextForPlayer(playerid, "uzsiregistruok arba prisijunk bl", 5000, 4);
     return 0;
  }
  return 1;
}
Reply
#5

Quote:

C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 028: invalid subscript (not an array or too many subscripts): "Logged"
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : warning 215: expression has no effect
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : error 029: invalid expression, assumed zero
C:\Documents and Settings\LT\Desktop\LT-Drift.pwn(507) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

OMG
Reply
#6

How did you declare "Logged"?
Reply
#7

pawn Код:
// add that
new Logged[MAX_PLAYERS];
Reply
#8

And you tried the code Andom posted?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)