Jump to content
  • 0

Problema /cannounce


Question

Posted

Am facut o comanda pentru sistemu de clan..

iar cand dau

/cannounce nu apare numele celui care a dat /cannounce :-??

ex :

      TheBest

Toata lumea la baza

CMD:cannounce(playerid, params[])
{
    if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");
    if(isnull(params)) return SendClientMessage(playerid,COLOR_RED, "USAGE: /cannounce <Text>");
    GameTextForAll(params,6000,3);
    return 1;
}

6 answers to this question

Recommended Posts

Posted

Hm... Interesant desi nu sunt eu scripter Expert sa ii zicem asa poti sa iti zic un sfat : verifica la Compilare sa vezi daca iti da o eroare sau un Warning

Posted

CMD:cannounce(playerid, params[])

{

    new str[129], pName[24];

    GetPlayerName(playerid, pName,sizeof(pName))

    if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");

    if(isnull(params))

return SendClientMessage(playerid,COLOR_RED, "USAGE: /cannounce <Text>");

    format(str, sizeof(str), "%s %s", pName, params);

    GameTextForAll(str,6000,3);

    return 1;

}

7bdea99b11.png

rimmon curv.

Posted

CMD:cannounce(playerid, params[])

{

    new str[129], pName[24];

    GetPlayerName(playerid, pName,sizeof(pName))

    if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");

    if(isnull(params))

return SendClientMessage(playerid,COLOR_RED, "USAGE: /cannounce <Text>");

    format(str, sizeof(str), "%s %s", pName, params);

    GameTextForAll(str,6000,3);

    return 1;

}

Mersi :P

Revin daca da eroare:D

Edit:

D:\Europa Super Stunt - by TheBest [www.necro-zone.tk]\filterscripts\Createclan.pwn(916) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Vad ca totu este in regula :-?? Linia
if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");

Posted

Tank`s +1

dar

CMD:cannounce(playerid, params[])
{
    new str[129], pName[24];

    GetPlayerName(playerid, pName,sizeof(pName));

    if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");

    if(isnull(params))
return SendClientMessage(playerid,COLOR_RED, "USAGE: /cannounce <Text>");

    format(str, sizeof(str), "{FF0000}%s~n~{FFFFFF}%s", pName, params);
    GameTextForAll(str,6000,4);
    return 1;
}

Cum asi pute`a face cand un leader Co leader da /cannounce sa se vada in actual`u gang nu si la cele lante ganguri..

Idei :?

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.