Quote:
Originally Posted by Gii
PHP код:
if ( !strcmp("/mendingo", cmdtext, true, 10) ) {
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if( !strcmp(Nome, "NICK DO CARA QUE ESTA AUTORIZADO", true) ) {
// cуdigo do comando
}
else {
SendClientMessage(playerid, -1, "Vocк nгo esta autorizado a usar este comando!");
}
return 1;
}
Beijos!
|
puts man malz funfo soq bugo meus comandos todos
PHP код:
G:\SA-MP\PACK DKVIDEOS\PACK DKVIDEOS\filterscripts\ooc.pwn(117) : error 030: compound statement not closed at the end of file (started at line 59)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define DIALOG_AL 4677
#if defined FILTERSCRIPT
#include <a_samp>//Include Made by : Sa-mp Team.
#define COLOR_RED 0xAA3333AA // Definning color red.
#define COLOR_GREEN 0x33AA33AA // Definning color green.
forward SpawnProtection(playerid); // Forwarding our new Function.
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
new playerid:text
#else
main()
{
}
#endif
public OnPlayerSpawn(playerid)
{
SetPlayerSkin(playerid, 230);
return 1;
}
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ooc", cmdtext, false, 10) == 0)
{
return 1;
}
if (strcmp("/infosv", cmdtext, true, 10) == 0)
{
new Ajuda[1500];
#define DialogBoxEx 90
{
strcat(Ajuda,"{FFFFFF}Owner\n{FFEA03}[DG]Mendingo \n\n");
}
{
strcat(Ajuda, "{FFFFFF}Mapper\n{4CFA1B}OFF'S\n\n");
}//20
{
strcat(Ajuda, "{FFFFFF}Scrippter\n{0C9E05}OFF'S\n\n");
}//22
{
strcat(Ajuda, "{FFFFFF}Ajudantes\n{11CFCF}OFF'S\n\n");
}//23
{
strcat(Ajuda, "{FFFFFF}Divulgadores\n{1170CF}OFF'S\n\n");
}//17
{
strcat(Ajuda, "{FFFFFF}Vibradores\n{FA0505} OFF'S\n\n");
}//11 = 93
ShowPlayerDialog(playerid, DialogBoxEx, DIALOG_STYLE_MSGBOX, "Info Server", Ajuda, "Ok", "Cancelar");
return 1;
}
if ( !strcmp("/mendingo", cmdtext, true, 10) ) {
new Nome[24];
GetPlayerName(playerid, Nome, 24);
if( !strcmp(Nome, "[DG]Mendingo", true) ) {
if( !strcmp(Nome, "[DG]Naked", true) ) {
SetPlayerSkin(playerid, 230);
}
else {
SendClientMessage(playerid, -1, "Vocк nгo esta autorizado a usar este comando!");
}
return 1;
}
return 1;
}