Errors!
#1

Код:
      if(PlayerInfo[playerid][pVip] == 1)
      COMMAND:s( playerid, params[ ] )
      if(cmdtext[2]==0){SendClientMessage(playerid,0xDEB8870AA, "* Naudojimas: /s [tekstas]"); return 1;}
      new zin[256],vardas[MAX_PLAYER_NAME];
      GetPlayerName(playerid,vardas,MAX_PLAYER_NAME);
      format(zin,sizeof(zin),"*Vip {FF0000}%s{DEB887}: %s",vardas,cmdtext[3]);
      SendClientMessageToAll(0xDEB887AA,zin);
  }
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 399) : error 010: invalid function or declaration
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 401) : error 017: undefined symbol "cmdtext"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 401) : warning 215: expression has no effect
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 401) : error 001: expected token: ";", but found "]"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 403) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 485) : warning 203: symbol is never used: "vardas"
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 485) : warning 203: symbol is never used: "zin"

If i remove this line:

Код:
if(cmdtext[2]==0){SendClientMessage(playerid,0xDEB8870AA, "* Naudojimas: /s [tekstas]"); return 1;}
errors:

C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 399) : error 010: invalid function or declaration
C:\Users\Lauryno\Desktop\Servas\gamemodes\bom.pwn( 401) : error 003: declaration of a local variable must appear in a compound block
Reply


Messages In This Thread
Errors! - by Louris - 18.11.2012, 17:15
Re: Errors! - by Louris - 19.11.2012, 04:06
Re: Errors! - by Faisal_khan - 19.11.2012, 04:08
Re: Errors! - by Glad2BeHere - 19.11.2012, 04:28
Re: Errors! - by Huxley - 19.11.2012, 05:10
Re: Errors! - by Konstantinos - 19.11.2012, 07:59

Forum Jump:


Users browsing this thread: 2 Guest(s)