Menu help!?
#1

Код:
if(CurrentMenu == nogomet2)
  {
    switch(row)
    {
      case 0:
      {
        new
        string[128],
        name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        {
        format(string,sizeof string,"%s se prikljucio nogometu na strani plavog teama ",name);
				SetPlayerSkin(playerid,154);
				SetPlayerPos(playerid,1316.1793,2183.9863,10.8203);
				
        }
        case 1:
        {
        
        new
        string[128],
        name[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        {
        format(string,sizeof string,"%s se prikljucio nogometu na strani crvenog teama ",name);
        SetPlayerSkin(playerid,97);
        SetPlayerPos(playerid,1317.5258,2113.0247,10.8203);
        
      }
    }
  }
  return 1;
}
C:\Users\NASTIE\Desktop\ExtremeFun\filterscripts\C heckpoint.pwn(704) : error 014: invalid statement; not in switch
C:\Users\NASTIE\Desktop\ExtremeFun\filterscripts\C heckpoint.pwn(704) : warning 215: expression has no effect
C:\Users\NASTIE\Desktop\ExtremeFun\filterscripts\C heckpoint.pwn(704) : error 001: expected token: ";", but found ":"
C:\Users\NASTIE\Desktop\ExtremeFun\filterscripts\C heckpoint.pwn(704) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\ExtremeFun\filterscripts\C heckpoint.pwn(704) : 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
#2

where is line 704..? it will make things easier

btw you forgot a closing bracket at case 1 after setplayerpos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)