public OnPlayerCommandText(playerid, cmdtext[])//
{
if(strcmp(cmdtext, "/portaohq", true) == 0)
{
MoveObject(portao,723.3994140625,-2350.3994140625,14.699999809265,4.00);
SetTimer("portaoandando",10000,false);//tempo
SendClientMessage(playerid,COLOR_GREEN,"Portao HQ Aberto,10 segundos para fechar");
return 1;
}
if(strcmp(cmdtext, "/portaoheli", true) == 0)
{
MoveObject(portao2,666.2998046875, -2477.2998046875,15.0999999046326, 4.00);
SetTimer("portaocorrendo",10000,false);
SendClientMessage(playerid,COLOR_GREEN,"Portao HELI Aberto,10 segundos para fechar");
return 1;
}
//-----------------------------------------------------------------------------------------------
if (strcmp("/hqadmin", cmdtext, true, 10) == 0)//By: Puma_xD e Tiger_xD Equipe_xD
{
SetPlayerFacingAngle(playerid, 90);
SendClientMessage(playerid, COLOR_GOLD, "");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST, "BEM VINDO A HQ DOS ADMIN '-'", "HQ DOS ADMINS" , "Confirma", "Cancelar");
return 1;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])// { if(strcmp(cmdtext, "/portaohq", true) == 0) { if (PlayerInfo[playerid][pAdmin] > 1) MoveObject(portao,723.3994140625,-2350.3994140625,14.699999809265,4.00); SetTimer("portaoandando",10000,false);//tempo SendClientMessage(playerid,COLOR_GREEN,"Portao HQ Aberto,10 segundos para fechar"); return 1; } if(strcmp(cmdtext, "/portaoheli", true) == 0) { if (PlayerInfo[playerid][pAdmin] > 1) MoveObject(portao2,666.2998046875, -2477.2998046875,15.0999999046326, 4.00); SetTimer("portaocorrendo",10000,false); SendClientMessage(playerid,COLOR_GREEN,"Portao HELI Aberto,10 segundos para fechar"); return 1; } //----------------------------------------------------------------------------------------------- if (strcmp("/hqadmin", cmdtext, true, 10) == 0)//By: Puma_xD e Tiger_xD Equipe_xD { if (PlayerInfo[playerid][pAdmin] > 1) SetPlayerFacingAngle(playerid, 90); SendClientMessage(playerid, COLOR_GOLD, ""); ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST, "BEM VINDO A HQ DOS ADMIN '-'", "HQ DOS ADMINS" , "Confirma", "Cancelar"); return 1; } return 1; }
public OnPlayerCommandText(playerid, cmdtext[])//
{
if(strcmp(cmdtext, "/portaohq", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
MoveObject(portao,723.3994140625,-2350.3994140625,14.699999809265,4.00);
SetTimer("portaoandando",10000,false);//tempo
SendClientMessage(playerid,COLOR_GREEN,"Portao HQ Aberto,10 segundos para fechar");
return 1;
}
}
if(strcmp(cmdtext, "/portaoheli", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
MoveObject(portao2,666.2998046875, -2477.2998046875,15.0999999046326, 4.00);
SetTimer("portaocorrendo",10000,false);
SendClientMessage(playerid,COLOR_GREEN,"Portao HELI Aberto,10 segundos para fechar");
return 1;
}
}
//-----------------------------------------------------------------------------------------------
if (strcmp("/hqadmin", cmdtext, true, 10) == 0)//By: Puma_xD e Tiger_xD Equipe_xD
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerFacingAngle(playerid, 90);
SendClientMessage(playerid, COLOR_GOLD, "");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST, "BEM VINDO A HQ DOS ADMIN '-'", "HQ DOS ADMINS" , "Confirma", "Cancelar");
return 1;
}
}
return 0;
}
if (PlayerInfo[playerid][pAdmin] > 0)//0= lvl de admin
Код:
if (PlayerInfo[playerid][pAdmin] > 1) |
C:\Users\matheus\Desktop\Originals\Alex_Brigido\gamemodes\theus.pwn(354) : error 017: undefined symbol "PlayerInfo"
C:\Users\matheus\Desktop\Originals\Alex_Brigido\gamemodes\theus.pwn(354) : warning 215: expression has no effect
C:\Users\matheus\Desktop\Originals\Alex_Brigido\gamemodes\theus.pwn(354) : error 001: expected token: ";", but found "]"
C:\Users\matheus\Desktop\Originals\Alex_Brigido\gamemodes\theus.pwn(354) : error 029: invalid expression, assumed zero
C:\Users\matheus\Desktop\Originals\Alex_Brigido\gamemodes\theus.pwn(354) : fatal error 107: too many error messages on one line
Qual a definiзгo de admin do seu GM?
@Eduardo seu code tб errado nгo? g.g |
Poste o topo com seu 'enum pInfo' ou qualquer desses que tenha a define de admin... pra mim ver
|
COMEЗO
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_GREEN 0xA1FFB9FF
#define COLOR_WHITE 0xFFFFFFFF
#define PlayerInfo;
#define COLOR_GOLD 0xD3A400FF
#include <a_objects>
new portao;
new portao2;
FIM
forward portaoandando();
public portaoandando()
{
MoveObject(portao,723.3994140625,-2350.3994140625,2.7000000476837, 4.00);
return 1;
}
forward portaocorrendo();
public portaocorrendo()
{
MoveObject(portao2,666.2998046875,-2477.2998046875,3.0999999046326, 4.00);
return 1;
}