30.01.2014, 14:54
Quote:
vocк tem que definir como й seu sistema de Administraзгo, nгo com esse que eu lhe enviei, talvez o seu seja diferente .
PHP код:
|
Код:
if(strcmp(cmdtext,"/limparchat", true) == 0) { if (APlayerData[playerid][PlayerLevel] >= 1) { for(new a = 0; a < 20; a++) { SendClientMessageToAll(0x33CCFFAA, " "); } return 1; } }
Код:
C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(1) : error 010: invalid function or declaration C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(3) : error 010: invalid function or declaration C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(5) : error 010: invalid function or declaration C:\Users\Julio\Desktop\PPC_Trucking\pawno\include\PPC_PlayerCommands.inc(9) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
COMMAND:lc(playerid, params[]) { if(pAdmin[playerid] >= 1)//aki esta definido para admin 1 ou maior, exemplo 1, 2, 3, 4, 5 .. se quiser alterar sу para 1 tipo de admin altere {//para pAdmin[playerid] == 1) new name[ 24 ], string[ 64 ]; limparChat(playerid, 30); format( string, sizeof(string), "chat do server foi resetado", name ); GameTextForAll( string, 5000, 3 ); return 1; } } stock limparChat(playerid, linhas) { for(new b = 0; b <= linhas; b++) SendClientMessage(playerid, -1, " "); }