[PEDIDO]Torre!
#8

TOPO GM
Код:
new Operador[MAX_PLAYERS];
new PlayerInfo[MAX_PLAYERS];
OnPlayerCommandText

Код:
 if(strcmp(cmd, "/Torre", true) == 0)
{
 if(PlayerInfo[playerid][Operador] >= 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;
}
Ficaria Assim no caso?

Coloquei desse jeito ai em cima e deu:
Код:
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1715) : error 001: expected token: ")", but found "["
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1715) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1715) : warning 215: expression has no effect
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1715) : error 001: expected token: ";", but found "]"
C:\Users\Gabriel\Downloads\samp03dsvr_R2_win32\gamemodes\GM1.pwn(1715) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Linha 1715
Код:
{
 if(PlayerInfo[playerid][Operador] >= 1) // O 1 Seria o Level, ETC..so mudar!
{
Reply


Messages In This Thread
[PEDIDO]Torre! - by gcoder - 10.04.2012, 15:28
Re: [PEDIDO]Torre! - by Deanx - 10.04.2012, 16:42
Re: [PEDIDO]Torre! - by @Riichard - 10.04.2012, 16:43
Re: [PEDIDO]Torre! - by gcoder - 10.04.2012, 20:19
Re: [PEDIDO]Torre! - by Abravanel - 10.04.2012, 20:36
Re: [PEDIDO]Torre! - by gcoder - 10.04.2012, 20:42
Re: [PEDIDO]Torre! - by Abravanel - 10.04.2012, 20:49
Re: [PEDIDO]Torre! - by gcoder - 10.04.2012, 20:58
Re: [PEDIDO]Torre! - by @Riichard - 10.04.2012, 21:43
Re: [PEDIDO]Torre! - by gcoder - 11.04.2012, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)