Jump to content
  • 0

/credits


Tasmell

Question

Salut. Am bagat comanda asta pe server

if(strcmp(cmdtext, "/credits", true) == 0)
	{
    new plname[MAX_PLAYER_NAME];
    new string[650],string2[650],string3[650],string4[650],string5[650],string6[650];
    GetPlayerName(playerid,plname,sizeof(plname));
    format(string,sizeof(string),"{66CCFF}Te-ai gandit vreo data cine a contribuit la crearea acestui server?\n{66CCFF}Uite ca iti spunem aici!\n\n{FF0000}Scripteri:\n{FFFFFF}[TnT]Rimmon \n AliNuTzZz\n\n");
    format(string2,sizeof(string2),"{FF0000}Creatorii GM-ului:\n{FFFFFF}Tasmell\n\n{FF0000}Creatorii Hartilor:\n{FFFFFF}vampir_md\n\n{FF0000}Web Site:\n{FFFFFF}nume\n\n");
    format(string3,sizeof(string3),"{FF0000}Others:\n{FFFFFF}nume\n{FFFFFF}nume\n\n");
    format(string4,sizeof(string4),"{FF0000}Cel mai bun jucator: %s\n",plname);
    format(string5,sizeof(string5),"{FF0000}=====================================================\n{3300FF}Deadly {FFFF00}Maximum {FF0000}Stunt\n{0099FF}Visit {FFFFFF}wWw.Deadly.tk\n{0099FF}\n{FF0000}=====================================================\n");
    format(string6,sizeof(string6),"{FF0000}%s %s %s %s %s",string,string2,string3,string4,string5);
	ShowPlayerDialog(playerid, 12000, DIALOG_STYLE_MSGBOX, "{3399FF}-= Creatorii RST =-", string6, "Ok", "");
    return 1;
    }
dar cand dau compile imi da doua warninguri
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(1102) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Soap\Desktop\SR The Best\gamemodes\RO.pwn(1102) : warning 219: local variable "string3" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           7364 bytes
Code size:           557764 bytes
Data size:          1080504 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5551 cells (22204 bytes)
Total requirements: 1662016 bytes

2 Warnings.

si cand intru pe server si scriu /credits imi zice UNCKNOW COMMAND.

Daca stiti dc nu merge dati un reply!

ms :cool:

200r807.gif
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

[pawn] if( strcmp( cmdtext, "/credits", true) == 0 )

{

new string[ 1024 ], plname[ MAX_PLAYER_NAME ];

GetPlayerName( playerid, plname, sizeof( plname ) );

strcat( string, "{66CCFF}Te-ai gandit vreo data cine a contribuit la crearea acestui server?\n{66CCFF}Uite ca iti spunem aici!\n\n{FF0000}Scripteri:\n{FFFFFF}[TnT]Rimmon \n AliNuTzZz\n\n", 1024 );

strcat( string, "{FF0000}Creatorii GM-ului:\n{FFFFFF}Tasmell\n\n{FF0000}Creatorii Hartilor:\n{FFFFFF}vampir_md\n\n{FF0000}Web Site:\n{FFFFFF}nume\n\n", 1024 );

strcat( string, "{FF0000}Others:\n{FFFFFF}nume\n{FFFFFF}nume\n\n", 1024 );

strcat( string, "{FF0000}Cel mai bun jucator: %s\n", 1024, plname );

strcat( string, "{FF0000}=====================================================\n{3300FF}Deadly {FFFF00}Maximum {FF0000}Stunt\n{0099FF}Visit {FFFFFF}wWw.Deadly.tk\n{0099FF}\n{FF0000}=====================================================", 1024 );

ShowPlayerDialog( playerid, 12000, DIALOG_STYLE_MSGBOX, "{3399FF}-= Creatorii RST =-", string, "Ok","" );

return ( 1 );

} [/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.