Help please! Please some one help deal this thing.... ;( -
trapped1 - 25.12.2010
Код:
C:\Users\Cronus\Desktop\samp03csvr_RC6_win32\gamemodes\larp.pwn(5390) : error 017: undefined symbol "MAX_PLAYER_ATTAC"
C:\Users\Cronus\Desktop\samp03csvr_RC6_win32\gamemodes\larp.pwn(5390) : error 017: undefined symbol "HED_OBJECTS"
C:\Users\Cronus\Desktop\samp03csvr_RC6_win32\gamemodes\larp.pwn(5390) : error 029: invalid expression, assumed zero
C:\Users\Cronus\Desktop\samp03csvr_RC6_win32\gamemodes\larp.pwn(5390) : fatal error 107: too many error messages on one line
Код:
dcmd_attach(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] != 1337)
return SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this!!");
new modelid,bone,Float:fX,Float:fY,Float:fZ,Float:fRX,Float:fRY,Float:fRZ;
new comment[64];
if(sscanf(params, "iiffffffs", modelid, bone, fX,fY,fZ,fRX,fRY,fRZ,comment))
return SendClientMessage(playerid, 0xFF6600FF,"Correct Usage: \"/attach <modelid> <bone> <x> <y> <z> <rotx> <roty> <rotz> <comment>\"");
if(Attached[playerid] == 1)
{
if(IsPlayerHoldingObject(playerid)) //this is the error line :(
{
StopPlayerHoldingObject(playerid);
SetPlayerHoldingObject(playerid, modelid, bone, fX,fY,fZ,fRX,fRY,fRZ);
}
else
{
SetPlayerHoldingObject(playerid, modelid, bone, fX,fY,fZ,fRX,fRY,fRZ);
}
}
else
{
SetPlayerHoldingObject(playerid, modelid, bone, fX,fY,fZ,fRX,fRY,fRZ);
Attached[playerid] = 1;
}
printf("SetPlayerHoldingObject(playerid, %d,%d,%.01f,%.01f,%.01f,%.01f,%.01f,%.01f);", modelid, bone, fX,fY,fZ,fRX,fRY,fRZ);
printf("Comment: %s",comment);
return 1;
}
Thats the error lines
//Function
Код:
if(strcmp(cmd, "/allowcreation", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /allowcreation [FamilyNr] [playerid/PartOfName]");
return 1;
}
new family = strval(tmp);
if(family < 1 || family > 10) { SendClientMessage(playerid, COLOR_GREY, "* FamilyNr can't be below 1 or above 10 !"); return 1; }
if(PlayerInfo[playerid][pLeader] == 5 && family > 5) { SendClientMessage(playerid, COLOR_GREY, "* Surenos Leader can only take FamilyNr 1 till 5 !"); return 1; }
else if(PlayerInfo[playerid][pLeader] == 6 && family < 6) { SendClientMessage(playerid, COLOR_GREY, "* Le Signatra family Leader can only take FamilyNr 6 till 10 !"); return 1; }
else if(PlayerInfo[playerid][pLeader] == 14 && family < 14) { SendClientMessage(playerid, COLOR_GREY, "* Yamaguchi Leader can only take FamilyNr 11 till 15 !"); return 1; }
else if(PlayerInfo[playerid][pLeader] == 15 && family < 15) { SendClientMessage(playerid, COLOR_GREY, "* Chornaya Bratva Leader can only take FamilyNr 15 till 20 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /allowcreation [FamilyNr] [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
family -= 1;
if(FamilyInfo[family][FamilyTaken] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " That FamilyNr is already taken !" );
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* You've made %s the Leader of FamilyNr %d.",giveplayer,family);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
if(PlayerInfo[playerid][pLeader] == 5)
{
format(string, sizeof(string), "* Surenos Leader %s has made you a Family Leader of FamilyNr %d.",sendername,family);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
else if(PlayerInfo[playerid][pLeader] == 6)
{
format(string, sizeof(string), "* Le Signatra family Leader %s has made you a Family Leader of FamilyNr %d.",sendername,family);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
else if(PlayerInfo[playerid][pLeader] == 14)
{
format(string, sizeof(string), "* Yamaguchi Leader %s has made you a Family Leader of FamilyNr %d.",sendername,family);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
else if(PlayerInfo[playerid][pLeader] == 15)
{
format(string, sizeof(string), "* Chornaya Bratva Leader %s has made you a Family Leader of FamilyNr %d.",sendername,family);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
else if(PlayerInfo[playerid][pLeader] == 16)
{
format(string, sizeof(string), "* La Vice Leader %s has made you a Family Leader of FamilyNr %d.",sendername,family);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
}
format(string, sizeof(string), "%s",giveplayer);
strmid(FamilyInfo[family][FamilyLeader], string, 0, strlen(string), 255);
FamilyInfo[family][FamilyMembers] ++;
FamilyInfo[family][FamilyTaken] = 1;
PlayerInfo[giveplayerid][pFMember] = family;
SaveFamilies();
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not the Leader of one of the Organisations !");
return 1;
}
}
return 1;
}
Re: Help please! -
Krx17 - 25.12.2010
Show us the IsPlayerHoldingObject function.
Re: Help please! -
trapped1 - 25.12.2010
Please some one help me..
![Sad](images/smilies/sad.gif)
Please really needed.......
Re: Help please! -
Krx17 - 25.12.2010
Show us the IsPlayerHoldingObject
function.
pawn Код:
//Example
stock IsPlayerHoldingObject()
{
}
Re: Help please! -
Leeroy. - 25.12.2010
pawn Код:
MAX_PLAYER_ATTACHED_OBJECTS-1
Replace it.