22.02.2012, 18:12
Hello i just make /fcar park commands which means that just leader (boss) of factions can park faction vehicle.
And WHen i comppile i get this:
And here is the lines:
Please tell me what should i do.
And WHen i comppile i get this:
pawn Код:
(28594) : error 004: function "SetCarPos" is not implemented
pawn Код:
if(strcmp(cmd, "/fcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAMember(playerid) || IsACop(playerid) || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pMember] == 3)
{
new fam = PlayerInfo[playerid][pMember];
new x_job[256];
x_job = mystrtok(cmdtext, idx);
if(!strlen(x_job))
{
SendClientMessage(playerid, COLOR_GREY,".: Usage: /fcar [tow/more soon] :.");
return 1;
}
if(strcmp(x_job,"tow",true) == 0)
{
if(IsHighRank(playerid))
{
GivePlayerMoney(playerid,-10000);
Money[playerid] -= 10000;
FamilyInfo[fam][fMoney] += 10000;
RespawnFactionVehicles(playerid);
}
}
if(strcmp(x_job,"park",true) == 0)
{
if(IsHighRank(playerid))
{
GivePlayerMoney(playerid,-10000);
Money[playerid] -= 10000;
FamilyInfo[fam][fMoney] += 10000;
SetCarPos(carid);
}
}