Jump to content
  • 0

Eroare Gamemode


[Funky]Anakin

Question

F:\Torente\RBS\RBS\gamemodes\RBS.pwn(3241) : warning 209: function "JB_OnPlayerCommandText" should return a value

Ce pot face la warn asta?Fiindca nu pot sa fac nici o comanda sa mearga .Multumesc.

Linia:

[pawn]public OnPlayerCommandText(playerid, cmdtext[])

{

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

    {

    new name[MAX_PLAYER_NAME], strg[900];

    GetPlayerName(playerid, name, sizeof(name));

    format(strg,sizeof(strg),"{03E1FE}Proprietari serverului\n - {00FF19}.::Alex::.\n\n{03E1FE}Owner {00FF19}\n .::Alex::.\n\n{03E1FE}GameMode\n - {00FF19}.::Alex::.\n\n{03E1FE}FileScripts :\n\n -  {00FF19}.::Alex::.  {03E1FE}\n\nMape\n - {00FF19}_Masked_Man\n\n{03E1FE}\n{FFFFFF}Si {FC0303} % {FFFFFF}pentru ca joci pe server!.");

    ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_MSGBOX, "{00FF04}Server Credits", strg, ">>OK<<", "Cancel");

    return 1;

    }

}[/pawn]

idiots.png
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Incearca asa :

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/credits", true) == 0)
    {
    new name[MAX_PLAYER_NAME], strg[900];
    GetPlayerName(playerid, name, sizeof(name));
    format(strg,sizeof(strg),"{03E1FE}Proprietari serverului\n - {00FF19}.::Alex::.\n\n{03E1FE}Owner {00FF19}\n .::Alex::.\n\n{03E1FE}GameMode\n - {00FF19}.::Alex::.\n\n{03E1FE}FileScripts :\n\n -  {00FF19}.::Alex::.  {03E1FE}\n\nMape\n - {00FF19}_Masked_Man\n\n{03E1FE}\n{FFFFFF}Si {FC0303} %s {FFFFFF}pentru ca joci pe server!.");
    ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_MSGBOX, "{00FF04}Server Credits", strg, ">>OK<<", "Cancel");
    return 1;
    }
}

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.