SA-MP Forums Archive
The server stops - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: The server stops (/showthread.php?tid=477264)



The server stops - SounDD - 23.11.2013

Hi everybody,I have a problem with my server.When I write /cmdsserver stops.I looked in the server.log,but I have not seen errors.Please help


Re: The server stops - ikbenremco - 23.11.2013

Show us the /cdmsserver command.


Re: The server stops - SounDD - 23.11.2013

pawn Код:
CMD:cmds(playerid, params[])
    {
    new BigString15[1900];
    strcat(BigString15, "\t\t{66FF00}Inportant Commands{FFFFFF}\t\t\n\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/car [name] /v{FFFFFF} pentru ati lua masina!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/arme si /setarme{FFFFFF} pentru ati lua arme!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/credits{FFFFFF} pentru a vedea creatorii!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/cmds{FFFFFF} pentru a vedea comenzile!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/help{FFFFFF} daca ejti nou pe server!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/teles{FFFFFF} pentru a vedea teleporturile!\n", 1900 );
    strcat(BigString15, "Foloseste {FF0000}/news{FFFFFF} pentru a vedea ce mai e nou!\n\n", 1900 );
    strcat(BigString15, "\t\t{66FF00}Second Commands\t\t\n\n", 1900 );
    strcat(BigString15, "{6600FF}/v /skin (id) /cash /score /afk /back /up /ad /glasses1\n", 1900 );
    strcat(BigString15, "{6600FF}/s /l /casca /rules /buyadmin /surfgo /flori /glasses2\n", 1900 );
    strcat(BigString15, "{6600FF}/magazin /culori /show /hide /laba /cc /surfback /styles\n", 1900 );
    strcat(BigString15, "{6600FF}/bug /ponline /rampages /camera /para /sugestie\n", 1900 );
    strcat(BigString15, "{6600FF}/vcontrol /speedo /weather /count /countdown /ochelari\n", 1900 );
    strcat(BigString15, "{6600FF}/tigara /bere /vin /zi /noapte /viata /vup /vupoff /buyscore\n", 1900 );
    strcat(BigString15, "{6600FF}/elegy /nrg /fix /flip /star /scredits /chat /piss /drunklevel\n", 1900 );
    strcat(BigString15, "{FF0000}Matematica:{6600FF}/aduna /scade /inmultire /impartire /mcmds\n", 1900 );
    strcat(BigString15, "{FF0000}Cookies:{6600FF}/buycookies /givecookies /throwcookies /eatcookie /mycookies /ccmds\n", 1900 );
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/alien /trashf /incred /police /iron /dick\n", 1900 );
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/dildos /dildos2 /scut /toroman /weaponizer\n\n", 1900 );
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}2{FFFFFF} pentru a repara masina!\t\t\n", 1900 );
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}click{FFFFFF} pentru nitro\t\t\n", 1900 );
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}/stophold{FFFFFF} pentru a opri Holdurile\n\n", 1900 );
    strcat(BigString15, "\t\t{6600FF}Romania {FFFF00}National {FF0000}Stunt\t\t\n", 1900 );
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}--- General Commands ---", BigString15, "*_OK_*","");
    return 1;
    }



Re: The server stops - RenSoprano - 23.11.2013

pawn Код:
CMD:cmds(playerid, params[])
    {
    new BigString15[256];
    strcat(BigString15, "\t\t{66FF00}Inportant Commands{FFFFFF}\t\t\n\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/car [name] /v{FFFFFF} pentru ati lua masina!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/arme si /setarme{FFFFFF} pentru ati lua arme!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/credits{FFFFFF} pentru a vedea creatorii!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/cmds{FFFFFF} pentru a vedea comenzile!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/help{FFFFFF} daca ejti nou pe server!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/teles{FFFFFF} pentru a vedea teleporturile!\n", 256 );
    strcat(BigString15, "Foloseste {FF0000}/news{FFFFFF} pentru a vedea ce mai e nou!\n\n", 256 );
    strcat(BigString15, "\t\t{66FF00}Second Commands\t\t\n\n", 256 );
    strcat(BigString15, "{6600FF}/v /skin (id) /cash /score /afk /back /up /ad /glasses1\n", 256 );
    strcat(BigString15, "{6600FF}/s /l /casca /rules /buyadmin /surfgo /flori /glasses2\n", 256 );
    strcat(BigString15, "{6600FF}/magazin /culori /show /hide /laba /cc /surfback /styles\n", 256 );
    strcat(BigString15, "{6600FF}/bug /ponline /rampages /camera /para /sugestie\n", 256 );
    strcat(BigString15, "{6600FF}/vcontrol /speedo /weather /count /countdown /ochelari\n", 256 );
    strcat(BigString15, "{6600FF}/tigara /bere /vin /zi /noapte /viata /vup /vupoff /buyscore\n", 256 );
    strcat(BigString15, "{6600FF}/elegy /nrg /fix /flip /star /scredits /chat /piss /drunklevel\n", 256);
    strcat(BigString15, "{FF0000}Matematica:{6600FF}/aduna /scade /inmultire /impartire /mcmds\n", 256 );
    strcat(BigString15, "{FF0000}Cookies:{6600FF}/buycookies /givecookies /throwcookies /eatcookie /mycookies /ccmds\n", 256);
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/alien /trashf /incred /police /iron /dick\n", 256 );
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/dildos /dildos2 /scut /toroman /weaponizer\n\n",256);
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}2{FFFFFF} pentru a repara masina!\t\t\n", 256);
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}click{FFFFFF} pentru nitro\t\t\n", 256 );
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}/stophold{FFFFFF} pentru a opri Holdurile\n\n",256 );
    strcat(BigString15, "\t\t{6600FF}Romania {FFFF00}National {FF0000}Stunt\t\t\n", 256 );
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}--- General Commands ---", BigString15, "*_OK_*","");
    return 1;
    }
Max string lenght is 1024. string[1] = 1 character = 4 bytes so you don't need more then 256 for your code you can put 512 but this will take alot of space and it is not recommended


Re: The server stops - SounDD - 23.11.2013

Not working..the server stops.


Re: The server stops - kbalor - 23.11.2013

I just noticed you put the string size at the end. ,1900);

Remove it and make it like this

");


Re: The server stops - RenSoprano - 23.11.2013

Код:
CMD:cmds(playerid, params[])
{
    new BigString15[256] = "\t\t{66FF00}Inportant Commands{FFFFFF}\t\t\n\n";
    strcat(BigString15, "Foloseste {FF0000}/car [name] /v{FFFFFF} pentru ati lua masina!\n");
    strcat(BigString15, "Foloseste {FF0000}/arme si /setarme{FFFFFF} pentru ati lua arme!\n");
    strcat(BigString15, "Foloseste {FF0000}/credits{FFFFFF} pentru a vedea creatorii!\n");
    strcat(BigString15, "Foloseste {FF0000}/cmds{FFFFFF} pentru a vedea comenzile!\n");
    strcat(BigString15, "Foloseste {FF0000}/help{FFFFFF} daca ejti nou pe server!\n");
    strcat(BigString15, "Foloseste {FF0000}/teles{FFFFFF} pentru a vedea teleporturile!\n");
    strcat(BigString15, "Foloseste {FF0000}/news{FFFFFF} pentru a vedea ce mai e nou!\n\n");
    strcat(BigString15, "\t\t{66FF00}Second Commands\t\t\n\n");
    strcat(BigString15, "{6600FF}/v /skin (id) /cash /score /afk /back /up /ad /glasses1\n");
    strcat(BigString15, "{6600FF}/s /l /casca /rules /buyadmin /surfgo /flori /glasses2\n");
    strcat(BigString15, "{6600FF}/magazin /culori /show /hide /laba /cc /surfback /styles\n");
    strcat(BigString15, "{6600FF}/bug /ponline /rampages /camera /para /sugestie\n");
    strcat(BigString15, "{6600FF}/vcontrol /speedo /weather /count /countdown /ochelari\n");
    strcat(BigString15, "{6600FF}/tigara /bere /vin /zi /noapte /viata /vup /vupoff /buyscore\n");
    strcat(BigString15, "{6600FF}/elegy /nrg /fix /flip /star /scredits /chat /piss /drunklevel\n");
    strcat(BigString15, "{FF0000}Matematica:{6600FF}/aduna /scade /inmultire /impartire /mcmds\n");
    strcat(BigString15, "{FF0000}Cookies:{6600FF}/buycookies /givecookies /throwcookies /eatcookie /mycookies /ccmds\n");
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/alien /trashf /incred /police /iron /dick\n");
    strcat(BigString15, "{FF0000}HOLD:{6600FF}/dildos /dildos2 /scut /toroman /weaponizer\n\n");
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}2{FFFFFF} pentru a repara masina!\t\t\n");
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}click{FFFFFF} pentru nitro\t\t\n");
    strcat(BigString15, "{FFFFFF}Foloseste {FF0000}/stophold{FFFFFF} pentru a opri Holdurile\n\n");
    strcat(BigString15, "\t\t{6600FF}Romania {FFFF00}National {FF0000}Stunt\t\t\n");
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{FF0000}--- General Commands ---", BigString15, "*_OK_*","");
    return 1;
}



Re: The server stops - SounDD - 23.11.2013

I changed the order and now works.Thanks for help.