03.03.2014, 22:13
Criei 2 portхes e queria saber como fazer para os bloquear para os jogadores normais, so admins o podendo usar, alguйm poderia ajudar??
if(PlayerInfo[playerid][Admin] > 0)
{
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\pawno\include\seif_walk.inc(53) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(1572) : error 004: function "IsAGroove" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(1576) : error 004: function "IsAGrooveSF" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3258) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3305) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3460) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3476) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3562) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3580) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3598) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3616) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3634) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3652) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3670) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3688) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3706) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3724) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(3735) : error 004: function "ProxDetector" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(4097) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(4166) : error 004: function "OnPlayerText" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(4171) : error 004: function "OnPlayerText" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(5498) : error 004: function "ClearChatbox" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(5738) : error 004: function "ClearChatbox" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(5746) : error 004: function "ClearChatbox" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(5754) : error 004: function "ClearChatbox" is not implemented
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(5762) : error 004: function "ClearChatbox" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
#define F_MAX_OBJECTS 750 //maximum amount of objects the streamer will create; PLEASE change this to the amount of objects you are using.
if(IsAGroove(playerid)||IsAVagos(playerid)||IsABallas(playerid)||IsAAzteca(playerid)||IsAComandoVermelho(playerid)||IsAPCC(playerid)||IsAMedicos(playerid)||IsAPM(playerid)||IsABOPEs(playerid)||IsATaxi(playerid)||IsAJornal(playerid))
else if(IsAGrooveSF(playerid)||IsAVagosSF(playerid)||IsABallasSF(playerid)||IsAAztecaSF(playerid)||IsASonsofAnarchy(playerid)||IsAPCCSF(playerid)||IsATaxiSF(playerid)||IsAMedicosSF(playerid)||IsAPoliciaCivil(playerid)||IsAPMSF(playerid)||IsAJornalSF(playerid))
if(GetPlayerOrg(k) == 8 && FH == 1)
if(GetPlayerOrg(k) == 22 && FK == 1)
if(GetPlayerOrg(giveplayerid) != GetPlayerOrg(playerid))
SendFamilyMessage(GetPlayerOrg(playerid), COLOR_YELLOW, string);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if(PlayerToPoint(2.0,playerid,963.7944,-933.7776,41.9256))
OnPlayerText(playerid,"proximo ");
OnPlayerText(playerid,"Confirma");
ClearChatbox(playerid, 100);
ClearChatbox(playerid, 100);
ClearChatbox(playerid, 100);
ClearChatbox(playerid, 100);
ClearChatbox(playerid, 100);
if(PlayerInfo[playerid][Admin] > 0)
{
Funзгo
}
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(16341) : warning 217: loose indentation
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29454) : error 036: empty statement
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : warning 217: loose indentation
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : error 033: array must be indexed (variable "PlayerInfo")
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : error 029: invalid expression, assumed zero
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : warning 215: expression has no effect
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : error 001: expected token: ";", but found "]"
C:\Users\Flavio Pereira\Desktop\PlayHappy\PlayHappy\gamemodes\PlayHappy.pwn(29455) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
xacalaca[playerid] ++;
if(strcmp(#/pad, cmdtext, true) == 0);
if(PlayerInfo)[playerid][Admin]>0);
if(strcmp(#/pad, cmdtext, true) == 0);
if(PlayerInfo)[playerid][Admin]>0);
{
MoveObject(padmd, 1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
SetTimer(#Movepadmd, 5000, 0);
SendClientMessage(playerid, 0x2641FEFF, #Portao aberto);
return true;
}
if(strcmp(/pad, cmdtext, true) == 0);
if(PlayerInfo[playerid][Admin]>0);
{
MoveObject(padmd, 1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
SetTimer(#Movepadmd, 5000, 0);
SendClientMessage(playerid, 0x2641FEFF, #Portao aberto);
return true;
}
if(strcmp(cmd, "/pad", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
MoveObject(padmd, 1548.3618,-1714.3406,37.1879,3,0.0000,0.0000,0.0000);
SetTimer(Movepadmd, 5000, 0);
SendClientMessage(playerid, 0x2641FEFF, "Portao aberto");
}
else
{
SendClientMessage(playerid, -1, "Vocк nгo й um Adminstrador !");
}
return true;
}