if(!strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
else if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980))
{
DestroyObject( hospitalgate );
hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.00000000);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo й aberto e serб encerrado em 6 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pega no seu remoto e abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(1732) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(1761) : error 004: function "SafeGivePlayerMoney" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(1797) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(179 : error 004: function "SafeGivePlayerWeapon" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(1825) : error 004: function "SafeResetPlayerWeapons" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2299) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2310) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2322) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2326) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(233 : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2342) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2346) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2350) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2354) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(235 : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2362) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2366) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(237 : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2382) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2386) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2390) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2394) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2406) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2410) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2414) : error 004: function "PlayerToPoint" is not implemented C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(2426) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. |
stock SafeGivePlayerMoney( playerid, cash )
{
PlayerInfo[ playerid ][ pCash ] += cash;
return 1;
}
PlayerToPoint( Float:radius, playerid, Float:X, Float:Y, Float:Z )
{
new Float:oldpos[ 3 ], Float:temppos[ 3 ];
GetPlayerPos( playerid, oldpos[ 0 ], oldpos[ 1 ], oldpos[ 2 ] );
temppos[ 0 ] = ( oldpos[ 0 ] -X );
temppos[ 1 ] = ( oldpos[ 1 ] -Y );
temppos[ 2 ] = ( oldpos[ 2 ] -Z );
if( ( ( temppos[ 0 ] < radius ) && ( temppos[ 0 ] > -radius ) ) && ( ( temppos[ 1 ] < radius ) && ( temppos[ 1 ] > -radius ) ) && ( ( temppos[ 2 ] < radius ) && ( temppos[ 2 ] > -radius ) ) )
{
return true;
}
return false;
}
if(strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(playerid, 15,1544.700317,-1630.735717,13.096980))
{
DestroyObject( hospitalgate );
hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.00000000);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo й aberto e serб encerrado em 6 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pega no seu remoto e abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
if(!strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1544.700317,-1630.735717,13.096980))
{
DestroyObject( hospitalgate );
hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.00000000);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo й aberto e serб encerrado em 6 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pega no seu remoto e abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
return true;
}
if(strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(15, playerid,1544.700317,-1630.735717,13.096980))
{
DestroyObject( hospitalgate );
hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.00000000);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo й aberto e serб encerrado em 6 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pega no seu remoto e abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
return 1;
}
C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(3356) : warning 219: local variable "string" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(10083) : error 017: undefined symbol "hospitalgate" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(10084) : error 017: undefined symbol "hospitalgate1" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(17471) : error 017: undefined symbol "hospitalgate" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(17472) : error 017: undefined symbol "hospitalgate1" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(4385 : warning 219: local variable "alarme" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(4385 : warning 219: local variable "portas" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(4385 : warning 219: local variable "capo" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(4385 : warning 219: local variable "portamalas" shadows a variable at a preceding level C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(43882) : warning 203: symbol is never used: "SetWorld" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(42076) : warning 204: symbol is assigned a value that is never used: "roadblocktimer" C:\Users\Ricardo Moreira\Desktop\RedContry\RP-NossaComunidade 0.3c.1\gamemodes\RP-NossaComunidade.pwn(10085) : warning 204: symbol is assigned a value that is never used: "tugate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
hospitalgate = CreateObject(968,2278.73876953,-51.65792465,27.59509277,0.00000000,9.00000000,0.00 000000); hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.0 0000000); |
new hospitalgate1;
new hospitalgate;