12.04.2012, 21:29
@Viniborn
Eu tinha feito um post pra colocar um sistema de /torre ai acabo que nao resolverao e colocarao 2 comandos um feito :
E O Outro por sscanf
Ai Eu ate coloquei no final do GM uma Stock pro Comando
Ja removi o CMD e nao resolveu o problema...
@OwnPlay
Eu tinha feito um post pra colocar um sistema de /torre ai acabo que nao resolverao e colocarao 2 comandos um feito :
Код:
if(strcmp(cmd, "/Torre", true) == 0) { if(PlayerInfo[playerid][pOperador] >= 1) // O 1 Seria o Level, ETC..so mudar! { if(!cmdtext[3])return SendClientMessage(playerid, -1, "/Torre [Texto]"); new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "[OPERADOR] %s Diz : %s", str, cmdtext[4]); SendClientMessageToAll(-1, str); } else { SendClientMessage(playerid, -1, "Somente Operadores! Use /q para Virar!"); } return 1; }
Код:
CMD:daroperador(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Sem permissгo."); new id, Nome[MAX_PLAYER_NAME], cell[50]; if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1,"CORRECT SYNTAX: /daroperador [ID]"); GetPlayerName(playerid, Nome, MAX_PLAYER_NAME); format(cell, 50,"* O administrador %s deu a vocк o cargo de Operador.", Nome); SendClientMessage(id, -1, cell); Operador[id] = 1; return true;
Код:
CMD:daroperador
@OwnPlay
Код:
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\pawno\include\dof2.inc(1283) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\pawno\include\dof2.inc(1314) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\pawno\include\dof2.inc(1337) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1962) : warning 202: number of arguments does not match definition C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(2436) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(2490) : warning 203: symbol is never used: "DOF2_Exit" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Warnings.