Can anyone help me?
#1

public OnPlayerEnterDynamicCP(playerid, checkpointid)

if(checkpointid == cpship)
{
if(gObjectiveReached)
if(gTeam[playerid] == TEAM_SWAT)
{
//Team_1 Enter Checkpoint
new string[265]; new str[265];
GetPlayerName(playerid, str, sizeof(str));
format(string, sizeof(string), "%s Has Planted Explosives.",str);
SendClientMessageToAll( COLOR_PURPLE, string);
GameTextForAll(string,4000,5);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(1252, 1, X, Y, Z);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Bomb Planting Animation
SendClientMessage(playerid, COLOR_RED, "Escape ASAP Its about to explode!!");
TextDrawShowForAll(EnterCheckpoint);
}
else if(gTeam[playerid] == TEAM_TERRORIST)
{
//Team_2 Enter Checkpoint
SendClientMessage(playerid, COLOR_BLUELIGHT, "Protect This Area from SWAT");} return;<---LINE 3346
}
return;<---LINE 3348
}
return 1;<---LINE 3350
}

E:\sampserver37utils\SVT2\SWAT Full\gamemodes\swat.pwn(3346) : warning 217: loose indentation
E:\sampserver37utils\SVT2\SWAT Full\gamemodes\swat.pwn(3346) : warning 209: function "OnPlayerEnterDynamicCP" should return a value
E:\sampserver37utils\SVT2\SWAT Full\gamemodes\swat.pwn(3348 ) : warning 217: loose indentation
E:\sampserver37utils\SVT2\SWAT Full\gamemodes\swat.pwn(3348 ) : warning 209: function "OnPlayerEnterDynamicCP" should return a value
E:\sampserver37utils\SVT2\SWAT Full\gamemodes\swat.pwn(3350) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

use this
Код:
 public OnPlayerEnterDynamicCP(playerid,
checkpointid)
if(checkpointid == cpship) return 1;
{
if(gObjectiveReached) return 1;
if(gTeam[playerid] == TEAM_SWAT)
{
//Team_1 Enter Checkpoint
new string[265]; new str[265];
GetPlayerName(playerid, str, sizeof(str));
format(string, sizeof(string), "%s Has
Planted Explosives.",str);
SendClientMessageToAll( COLOR_PURPLE,
string);
GameTextForAll(string,4000,5);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(1252, 1, X, Y, Z);
ApplyAnimation(playerid, "BOMBER",
"BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Bomb
Planting Animation
SendClientMessage(playerid, COLOR_RED,
"Escape ASAP Its about to explode!!");
TextDrawShowForAll(EnterCheckpoint);
}
else if(gTeam[playerid] ==
TEAM_TERRORIST)
{
//Team_2 Enter Checkpoint
SendClientMessage(playerid,
COLOR_BLUELIGHT, "Protect This Area
from SWAT");
}
return 1;
}
I
Reply
#3

That's it.

PHP код:

public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == cpship)
    {
        if(
gObjectiveReached)
        {
            if(
gTeam[playerid] == TEAM_SWAT)
            {
                
//Team_1 Enter Checkpoint
                
new string[265]; new str[265];
                
GetPlayerName(playeridstrsizeof(str));
                
format(stringsizeof(string), "%s has planted explosives.",str);
                
SendClientMessageToAllCOLOR_PURPLEstring);
                
GameTextForAll(string,4000,5);
                new 
Float:XFloat:YFloat:Z;
                
GetPlayerPos(playeridXYZ);
                
CreatePickup(12521XYZ);
                
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000); // Bomb Planting Animation
                
SendClientMessage(playeridCOLOR_RED"Escape ASAP Its about to explode!!");
                
TextDrawShowForAll(EnterCheckpoint);
            }
            else if(
gTeam[playerid] == TEAM_TERRORIST)
            {
                
//Team_2 Enter Checkpoint
                
SendClientMessage(playeridCOLOR_BLUELIGHT"Protect This Area from SWAT");
            }
        }
    }
    return 
1;

Reply
#4

@Dark Louis i love you! VERYYYYYYYYY THX...THIS WORKS, Detonater so sorry but yours havent work for me.

How i can give REP?

Im noob here so sorry.
Reply
#5

xD No problem.. thank you.. click this...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)