Jump to content
  • 0

Ajutor /credits


SkyLeAs

Question

Problema intalnita (descriere):Pai am refacut comanda /credits si primesc 8 erori si nu stiu cum sa o rezolv
Ero(area / rile) / warning-(ul / urile):

C:Documents and SettingsJohnnyYzDesktopskr.pwn(29467) : error 049: invalid line continuation
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29468) : error 055: start of function body without function header
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29472) : error 021: symbol already defined: "strcat"
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29476) : error 021: symbol already defined: "strcat"
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29482) : error 021: symbol already defined: "strcat"
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29487) : error 021: symbol already defined: "strcat"
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29493) : error 021: symbol already defined: "strcat"
C:Documents and SettingsJohnnyYzDesktopskr.pwn(29498) : error 010: invalid function or declaration
C:Documents and SettingsJohnnyYzDesktopskr.pwn(34566) : warning 219: local variable "BigString" shadows a variable at a preceding level
C:Documents and SettingsJohnnyYzDesktopskr.pwn(41087) : warning 203: symbol is never used: "BigString"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.

Liniile de cod / sursa / script-ul:

CMD:credits(playerid)
{
    //--------------------------------------------------------------------------
    new BigString[1900];
    // Text Credits
    strcat(BigString, "{168ADD}Te-ai intrebat vreodata cine a contribui la creerea acestui server?n", 1900 );
    strcat(BigString, "{168ADD}Uite ca iti spunem aici!n", 1900 );
    strcat(BigString, "n", 1900 );
    // Scripter GM
    strcat(BigString, "{F81414}Scripter GM:n", 1900 );
    strcat(BigString, "{E4EDF4}Daciann", 1900 );
    strcat(BigString, "{E4EDF4}97freshn", 1900 );
    strcat(BigString, "{E4EDF4}xxxSPEEDYxxxn", 1900 );
    strcat(BigString, "n", 1900 );
    // Web Site + Host
    strcat(BigString, "{F81414}Web Site + Host:n", 1900 );
    strcat(BigString, "{E4EDF4}Dacian  ( {ff0000}Web Site Host + Design Forum )n", 1900 );
    strcat(BigString, "{E4EDF4}97fresh ( {ff0000}Sa-mp Host )n", 1900 );
    strcat(BigString, "n", 1900 );
    // Creatorii Hartilor
    strcat(BigString, "{F81414}Creatorii Hartilor:n", 1900 );
    strcat(BigString, "{E4EDF4}Dacian n", 1900 );
    strcat(BigString, "{E4EDF4}97fresh n", 1900 );
    strcat(BigString, "{E4EDF4}[9mm]_LimitLess_ n", 1900 )
    strcat(BigString, "n", 1900 );
    // Server Owner
    strcat(BigString, "{F81414}Server Owner:n", 1900 );
    strcat(BigString, "{E4EDF4}Dacian n", 1900 );
    strcat(BigString, "{E4EDF4}97fresh n", 1900 );
    strcat(BigString, "n", 1900 );
    ShowPlayerDialog(playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "Credits", BigString, "OK","");
	return ( 1 );
}

Imagini / Video (optional):~
Ati incercat sa rezolvati singur?:Nu am incercat pentru ca nu stiu dece imi da asta

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
CMD:credits(playerid)
{
    new BigString[ 2048 ];
    BigString[ 0 ] = EOS;

    strcat(BigString, "{168ADD}Te-ai intrebat vreodata cine a contribui la creerea acestui server?n" );
    strcat(BigString, "{168ADD}Uite ca iti spunem aici!n" );
    strcat(BigString, "n" );
    strcat(BigString, "{F81414}Scripter GM:n" );
    strcat(BigString, "{E4EDF4}Daciann" );
    strcat(BigString, "{E4EDF4}97freshn" );
    strcat(BigString, "{E4EDF4}xxSPEEDYxxn" );
    strcat(BigString, "n" );
    strcat(BigString, "{F81414}Web Site + Host:n" );
    strcat(BigString, "{E4EDF4}Dacian  ( {ff0000}Web Site Host + Design Forum )n" );
    strcat(BigString, "{E4EDF4}97fresh ( {ff0000}Sa-mp Host )n" );
    strcat(BigString, "n" );
    strcat(BigString, "{F81414}Creatorii Hartilor:n" );
    strcat(BigString, "{E4EDF4}Dacian n" );
    strcat(BigString, "{E4EDF4}97fresh n" );
    strcat(BigString, "{E4EDF4}[9mm]_LimiTLesS_ n" )
    strcat(BigString, "n" );
    strcat(BigString, "{F81414}Server Owner:n" );
    strcat(BigString, "{E4EDF4}Dacian n" );
    strcat(BigString, "{E4EDF4}97fresh n" );
    strcat(BigString, "n" );
    ShowPlayerDialog(playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "Credits", BigString, "OK","");
    return ( 1 );
}

...

Edited by KnowN .

242086.png

Link to comment
Share on other sites

  • 0
strcat(BigString, "n", 1900 );

Serios? :))

 

Known, ai uitat si de: warning 219: local variable "BigString" shadows a variable at a preceding level

CMD:credits( playerid, params[] )
{
#pragma unused params
    new CString[ 2048 ];
    CString[ 0 ] = EOS;
 
    strcat(CString, "{168ADD}Te-ai intrebat vreodata cine a contribui la creerea acestui server?n" );
    strcat(CString, "{168ADD}Uite ca iti spunem aici!nn" );
    strcat(CString, "{F81414}Scripter GM:n" );
    strcat(CString, "{E4EDF4}Daciann" );
    strcat(CString, "{E4EDF4}97freshn" );
    strcat(CString, "{E4EDF4}xxSPEEDYxxnn" );
    strcat(CString, "{F81414}Web Site + Host:n" );
    strcat(CString, "{E4EDF4}Dacian  ( {ff0000}Web Site Host + Design Forum )n" );
    strcat(CString, "{E4EDF4}97fresh ( {ff0000}Sa-mp Host )nn" );
    strcat(CString, "{F81414}Creatorii Hartilor:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh n" );
    strcat(CString, "{E4EDF4}[9mm]_LimiTLesS_ nn" )
    strcat(CString, "{F81414}Server Owner:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh" );
    ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "Credits", CString, "OK","" );
    return ( 1 );
}
Edited by SoNNy.sys
  • Upvote 1

server.php

Link to comment
Share on other sites

  • 0
strcat(BigString, "n", 1900 );

Serios? :))

 

Known, ai uitat si de: warning 219: local variable "BigString" shadows a variable at a preceding level

CMD:credits( playerid, params[] )
{
#pragma unused params
    new CString[ 2048 ];
    CString[ 0 ] = EOS;
 
    strcat(CString, "{168ADD}Te-ai intrebat vreodata cine a contribui la creerea acestui server?n" );
    strcat(CString, "{168ADD}Uite ca iti spunem aici!nn" );
    strcat(CString, "{F81414}Scripter GM:n" );
    strcat(CString, "{E4EDF4}Daciann" );
    strcat(CString, "{E4EDF4}97freshn" );
    strcat(CString, "{E4EDF4}xxSPEEDYxxnn" );
    strcat(CString, "{F81414}Web Site + Host:n" );
    strcat(CString, "{E4EDF4}Dacian  ( {ff0000}Web Site Host + Design Forum )n" );
    strcat(CString, "{E4EDF4}97fresh ( {ff0000}Sa-mp Host )nn" );
    strcat(CString, "{F81414}Creatorii Hartilor:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh n" );
    strcat(CString, "{E4EDF4}[9mm]_LimiTLesS_ nn" )
    strcat(CString, "{F81414}Server Owner:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh" );
    ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "Credits", CString, "OK","" );
    return ( 1 );
}

Nu am cum sa retin totul :)) Ma grabeam...

Edited by KnowN .

242086.png

Link to comment
Share on other sites

  • 0

strcat(BigString, "n", 1900 );

Serios? :))

 

Known, ai uitat si de: warning 219: local variable "BigString" shadows a variable at a preceding level


CMD:credits( playerid, params[] )
{
#pragma unused params
    new CString[ 2048 ];
    CString[ 0 ] = EOS;
 
    strcat(CString, "{168ADD}Te-ai intrebat vreodata cine a contribui la creerea acestui server?n" );
    strcat(CString, "{168ADD}Uite ca iti spunem aici!nn" );
    strcat(CString, "{F81414}Scripter GM:n" );
    strcat(CString, "{E4EDF4}Daciann" );
    strcat(CString, "{E4EDF4}97freshn" );
    strcat(CString, "{E4EDF4}xxSPEEDYxxnn" );
    strcat(CString, "{F81414}Web Site + Host:n" );
    strcat(CString, "{E4EDF4}Dacian  ( {ff0000}Web Site Host + Design Forum )n" );
    strcat(CString, "{E4EDF4}97fresh ( {ff0000}Sa-mp Host )nn" );
    strcat(CString, "{F81414}Creatorii Hartilor:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh n" );
    strcat(CString, "{E4EDF4}[9mm]_LimiTLesS_ nn" )
    strcat(CString, "{F81414}Server Owner:n" );
    strcat(CString, "{E4EDF4}Dacian n" );
    strcat(CString, "{E4EDF4}97fresh" );
    ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, "Credits", CString, "OK","" );
    return ( 1 );
}

Multumesc

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.