Help Help And Help :D -
Rapk1d - 01.10.2012
So i have this
Код:
//---------------------------------[LCS]-----------------------------------------
if(strcmp(cmd, "/gotolcs", true) == 0) //
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1038.3295, -1030.3242, 129.2119);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
LinkVehicleToInterior(tmpcar, 0);
SetPlayerVirtualWorld(playerid, 1);
}
else
{
SetPlayerPos(playerid, -1035.0485, -1030.0416, 129.3460);
SetPlayerVirtualWorld(playerid, 1);
}
SendClientMessage(playerid, COLOR_GRAD1, "You have Been Teleported");
SendClientMessage(playerid, COLOR_NICERED, "Welcome to the Lcs Area.");
SetPlayerInterior(playerid,0);
DisablePlayerCheckpoint(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/openlcs", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pDM] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
return 1;
}
SendClientMessageToAll(TEAM_GROVE_COLOR, "PlayZone Server LCS is now OPEN!");
SendClientMessageToAll(TEAM_GROVE_COLOR, "We have only 30 slots so hurry up");
}
return 1;
}
if(strcmp(cmd,"/lcscount",true) == 0 || strcmp(cmd,"/lcscd",true) == 0) // By CuervO_NegrO
{
if(PlayerInfo[playerid][pDM] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(PlayerInfo[i][pDTK] == 1 || IsPlayerInRangeOfPoint(i,250, -1035.0485, -1030.0416, 129.3460))
{
SetTimer("DD1", 1000, false);
SetTimer("DD2", 2000, false);
SetTimer("DD3", 3000, false);
SetTimer("DD4", 4000, false);
SetTimer("DD5", 5000, false);
SetTimer("DD6", 6000, false);
}
}
return 1;
}
if(strcmp(cmd, "/lcsrights", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /ddrights [playerid/PartOfName] [level](0-1)");
return 1;
}
new playa;
new level;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
//ConsumingMoney[playa] = 1;
if(level < 0||level > 1) { SendClientMessage(playerid, COLOR_GREY, "** Level May not be below 0 or above 1!"); return 1; }
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
PlayerInfo[playa][pDM] = level;
format(string, sizeof(string), "** Gave to %s LCS Manager Level [%d]",giveplayer,level);
SendClientMessage(playerid, COLOR_ORANGE, string);
format(string, sizeof(string), "~b~-LCS- ~n~~w~You Have Now Level ~y~%d ~n~~w~At the ~p~Official LCS Managers Team",level);
GameTextForPlayer(playa, string, 4500,3);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Nu ai dreptul de a utiliza aceasta comanda!");
}
}
return 1;
}
if(strcmp(cmd, "/lcsHelp", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pDM] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have Authorization to use this Command!");
return 1;
}
SendClientMessage(playerid, COLOR_YELLOW, "----------------------- LCS Help -----------------------");
SendClientMessage(playerid, COLOR_WHITE, "To go to LCS Type: /gotolcs");
SendClientMessage(playerid, COLOR_WHITE, "To Send a LCS Opening Message Type: /LCS");
}
return 1;
}
if(strcmp(cmd, "/joinlcs", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (lcs == 1)
{
if (GetPlayerState(playerid) == 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Get out of your vehicle, and try again!");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SendClientMessage(playerid,COLOR_GREY," You can`t use this command, you are in jail !");
return 1;
}
if(WantedLevel[playerid] >= 1)
{
SendClientMessage(playerid,COLOR_GREY," You can`t use this command, you are currently Wanted !");
return 1;
}
if(PlayerTied[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " you can`t use this command because you are tied!");
return 1;
}
/*else
{
SetPlayerPos(playerid, -1035.0485, -1030.0416, 129.3460);
}*/
new Random = random(30);
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
SendClientMessage(playerid, COLOR_GRAD1, " Ai fost teleportat la LCS!");
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 1;
SetPlayerVirtualWorld(playerid,1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 0, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " The LCS Event is not activated at this time!");
}
}
And i ghet this what do i miss ??
Код:
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3405) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3409) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3421) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3425) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3429) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3433) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3437) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3441) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3445) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3457) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3461) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3465) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3469) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3473) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3485) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3489) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3493) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3505) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3509) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3513) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(3517) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(4295) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(4301) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(5123) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(5309) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\pronion\gamemodes\godfatherNEWwsws.pwn(5311) : error 017: undefined symbol "IsLeader"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
I forgot something ?
Please help
Re: Help Help And Help :D -
Red_Dragon. - 01.10.2012
Top of your GM:
pawn Код:
forward PlayerToPoint(color, string[]);
Also add this if you need it:
pawn Код:
public PlayerToPoint(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1) // if you need for admins only!!!
{
SendClientMessage(i, color, string);
}
}
}
}
Re: Help Help And Help :D -
gtakillerIV - 01.10.2012
PlayerToPoint is a Stock function so make it a stock.
https://sampwiki.blast.hk/wiki/Stocks
Код:
stock PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
{
new Floatldposx, Floatldposy, Floatldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
@Red_Dragon : Wrong thing mate
Re: Help Help And Help :D -
Rapk1d - 01.10.2012
SO i added this
Код:
stock PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)
{
new Floatldposx, Floatldposy, Floatldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
And Now i ghet this ....
Код:
C:\Users\bos\Desktop\PlayZone.pwn(4128) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(4134) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\PlayZone.pwn(4965) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\PlayZone.pwn(5151) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5153) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5173) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5175) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5194) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5196) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5215) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5217) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5236) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5238) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5257) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5259) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5278) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5280) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5299) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5301) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5320) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5322) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5343) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5345) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5364) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5366) : error 017: undefined symbol "IsLeader"
C:\Users\bos\Desktop\PlayZone.pwn(5385) : error 017: undefined symbol "IsLeader"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
i stil dont understand what is the problem
Re: Help Help And Help :D -
Rapk1d - 01.10.2012
anyone ?
Re: Help Help And Help :D -
Red_Dragon. - 01.10.2012
Do what i said ?!
Re: Help Help And Help :D -
Rapk1d - 01.10.2012
yes and now i ghet this
Код:
C:\Users\bos\Desktop\PlayZone.pwn(386) : error 025: function heading differs from prototype
C:\Users\bos\Desktop\PlayZone.pwn(3239) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3243) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3255) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3259) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3263) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3267) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3271) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3275) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3279) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3291) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3295) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3299) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3303) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3307) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3319) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3323) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3327) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3339) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3343) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3347) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(3351) : error 004: function "PlayerToPoint" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(4129) : error 004: function "RemoveRoadblock" is not implemented
C:\Users\bos\Desktop\PlayZone.pwn(4135) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\PlayZone.pwn(4966) : error 017: undefined symbol "PlayerName"
C:\Users\bos\Desktop\PlayZone.pwn(5152) : error 017: undefined symbol "IsLeader"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: Help Help And Help :D -
Rapk1d - 01.10.2012
so ? i still cant repair this