- 0
Problema comanda /ban
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
DvDGolL
Problemă întâlnită (descriere): salut.. am facut o comanda cu sscanf+zcmd si problema este la linia sscanfului
Ero(area / rile) / warning-(ul / urile):
error 076: syntax error in the expression, or invalid function call
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "return"
fatal error 107: too many error messages on one line
Liniile de cod / sursa / script-ul:linia de cod :scriptul meu
Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?:Am incercat sa caut pe google eroarea si sa o rezolv cu programu' ala de gasit acolade automat al' lui ARTIST(TOPICUL) dar nu puteam sa-l descarc ca linkurile erau expirate sau ceva in genu...
Uitati si scriptul meu :
[pawn]CMD:ban (playerid, params[])
{
if(IsPlayerAdmin(playerid)) {
if(IsPlayerConnected(playerid)) {
new player, reason [30], szString[128];
if (sscanf,(params, "us[30]", , reason) ) return SendClientMessage(playerid, 0xC4C4C4FF, "FOLOSESTE : /ban [playerid/nume] [reason]");
new giveid_NAME [ MAX_PLAYER_NAME ], playerid_NAME[MAX_PLAYER_NAME], text[ 256];
GetPlayerName(giveid, giveid_NAME, MAX_PLAYER_NAME);
GetPlayerName(playerid, playerid_NAME, MAX_PLAYER_NAME);
format(text, sizeof(text), "Jucatorul %s a primit ban de la (ADMINUL) %s pentru : %s", giveid_NAME, playerid_NAME, reason );
BanEx(giveid,player,reason);
} else return SendClientMessage( playerid, 0xC4C4C4FF, "Doar Adminii pot folosi aceasta comanda");
} else return SendClientMessage( playerid, 0xC4C4C4FF, "Jucatorul respectiv nu este conectat!");
return 1;
}[/pawn]
2 answers to this question
Recommended Posts