10.04.2012, 20:58
TOPO GM
OnPlayerCommandText
Ficaria Assim no caso?
Coloquei desse jeito ai em cima e deu:
Linha 1715
Код:
new Operador[MAX_PLAYERS]; new PlayerInfo[MAX_PLAYERS];
Код:
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; }
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.
Код:
{ if(PlayerInfo[playerid][Operador] >= 1) // O 1 Seria o Level, ETC..so mudar! {