14.03.2012, 13:46
pawn Код:
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43620) : error 017: undefined symbol "GivePlayerGun"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43637) : error 017: undefined symbol "GivePlayerGun"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(43654) : error 021: symbol already defined: "cmd_joingang"
C:\Users\James\Desktop\mrp\gamemodes\MSRP.pwn(87583) : warning 203: symbol is never used: "GetPizzaDistance"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
pawn Код:
These are the errors, relating to this command;
CMD:joingang(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,2523.27, -1679.39, 15.49) && !IsPlayerInRangeOfPoint(playerid,5.0,1994.14, -1115.61, 26.77))
{
SendClientMessage(playerid, COLOR_GREY, " You must be at Grove Street / Glen Park to join a public gang !");
return 1;
}
if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pFMember] == 255)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2523.27, -1679.39, 15.49)) //grove
{
new family = 0; //grove family number
PlayerInfo[playerid][pFMember] = family;
PlayerInfo[playerid][pRank] = 1;
new rand = 0+random(2);
new skin;
if(rand == 0) { skin = 105; }
if(rand == 1) { skin = 106; }
if(rand == 2) { skin = 107; }
SetPlayerSkin(playerid, skin);
PlayerInfo[playerid][pModel] = skin;
FamilyInfo[family][FamilyMembers] ++;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have joined Grove Street Families, you can now type /f to communicate with other gang members, use /help for other useful information.");
}
else if(IsPlayerInRangeOfPoint(playerid,5.0,1994.14, -1115.61, 26.77)) //ballas
{
new family = 1; //ballas family number
PlayerInfo[playerid][pFMember] = family;
PlayerInfo[playerid][pRank] = 1;
new rand = 0+random(2);
new skin;
if(rand == 0) { skin = 102; }
if(rand == 1) { skin = 103; }
if(rand == 2) { skin = 104; }
SetPlayerSkin(playerid, skin);
PlayerInfo[playerid][pModel] = skin;
FamilyInfo[family][FamilyMembers] ++;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have joined Glen Park Ballas, you can now type /f to communicate with other gang members, use /help for other useful information.");
}
SaveFamilies();
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are already in a Faction / Family !");
return 1;
}
}
return 1;
}