- 0
Problema ban offline.
-
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
Bogdan's
Problema intalnita (descriere): Deci am gasit pe net o comanda(/banoff) si voiam sa o adaug pe serverul meu care e pe dini.
Ok,totul bine,imi da doar o eroare am pus #pragma unused params si imi da mai multe erori.
Ero(area / rile) / warning-(ul / urile): (41247) : error 017: undefined symbol "params"
(41246) : warning 219: local variable "string" shadows a variable at a preceding level
Liniile de cod / sursa / script-ul(obligatoriu):
if(strcmp(cmd, "/banoff", true) == 0) { if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,-1,"{AA3333}ERROR:{FFFFFF} Only administrators may use this command."); { //Warning new targetid, reason[128], string[128], string2[128]; //Eroare if(sscanf(params,"us[128]",targetid,reason)) return SendClientMessage(playerid,-1,"{AA3333}USAGE:{FFFFFF} /abanaccount (id) (reason)"); format(string,128,"{AA3333}AdminWARNING:{FFFFFF} %s attempted to ban your account, for reason: %s.",RemoveUnderScore(playerid),reason); if(PlayerInfo[playerid][pAdmin] < PlayerInfo[targetid][pAdmin] || PlayerInfo[targetid][pAdmin] == 1338) return SendClientMessage(targetid,-1,string) && SendClientMessage(playerid,-1,"{AA3333}ERROR:{FFFFFF} You cannot ban that players account."); { PlayerInfo[targetid][pLocked] = 1; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pAdmin] > 1) { format(string2,128,"{AA3333}AdmCmd:{FFFFFF} %s has banned %s's account, for reason: %s",RemoveUnderScore(playerid),RemoveUnderScore(targetid),reason); SendClientMessage(i,-1,string2); Kick(targetid); } } } } } return 1; }Imagini / Video (optional): Am pus intre // linia cu eroare si imi da buguita comanda...
Ati incercat sa rezolvati singur?: Da,am cautat pe net dar nu am reusit sa o rezolv.
7 answers to this question
Recommended Posts