Kada provjerim dali gamemod redi izbaci mi ovo
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(1974) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(1999) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2070) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2074) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2086) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2090) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2094) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2098) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2102) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2106) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2110) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2122) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2126) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2130) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2134) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2138) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2150) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2154) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2158) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2170) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2174) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2904) : error 004: function "SendIRCMessage" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2926) : error 004: function "SendIRCMessage" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2938) : error 004: function "SaveCK" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2968) : error 004: function "SavePapers" is not implemented
C:\Documents and Settings\Administrator\Desktop\MrIllusion\gamemodes\eRP.pwn(2999) : error 004: function "SaveFamilies" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
POMOC!!
nisi definirao playertopoint
evo. ovo zaljepi na dno skripte
public PlayerToPointStripped(Float:radi, playerid, Float:x, Float:y, Float:z, Float:curx, Float:cury, Float:curz)
{
if(IsPlayerConnected(playerid))
{
new Float:tempposx, Float:tempposy, Float:tempposz;
tempposx = (curx -x);
tempposy = (cury -y);
tempposz = (curz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
}
return 0;
}
i ovo zaljepi na dno skripte
public SendIRCMessage(channel, color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayersChannel == channel)
{
SendClientMessage(i, color, string);
}
}
}
}
i ovo takodjer
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
/* if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
SetPlayerColor(playerid,COLOR_DBLUE);
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
SetPlayerColor(playerid,COLOR_BLACK);
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 1)
SetPlayerColor(playerid,cop_color);
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
SetPlayerColor(playerid,COLOR_DARKNICERED);
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
SetPlayerColor(playerid,COLOR_GROVE); */
}
}
i ovo na dno skripte
public SaveCK()
{
new idx;
new File: file2;
while (idx < sizeof(CKInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s|%s|%d\n",
CKInfo[idx][cSendername],
CKInfo[idx][cGiveplayer],
CKInfo[idx][cUsed]);
if(idx == 0)
{
file2 = fopen("cfg/ck.cfg", io_write);
}
else
{
file2 = fopen("cfg/ck.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
i to
public SavePapers()
{
new idx;
new File: file2;
while (idx < sizeof(IRCInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%s|%s|%s|%s|%s|%s|%d\n",
PaperInfo[idx][PaperUsed],
PaperInfo[idx][PaperMaker],
PaperInfo[idx][PaperTitle],
PaperInfo[idx][PaperText1],
PaperInfo[idx][PaperText2],
PaperInfo[idx][PaperText3],
PaperInfo[idx][PaperText4],
PaperInfo[idx][PaperText5],
PaperInfo[idx][PaperText6],
PaperInfo[idx][PaperText7],
PaperInfo[idx][SafeSaving]);
if(idx == 0)
{
file2 = fopen("cfg/papers.cfg", io_write);
}
else
{
file2 = fopen("cfg/papers.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
i ovo takodjer
public SaveFamilies()
{
new idx;
new File: file2;
while (idx < sizeof(FamilyInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%s|%d|%f|%f|%f|%f|%d\n",
FamilyInfo[idx][FamilyTaken],
FamilyInfo[idx][FamilyName],
FamilyInfo[idx][FamilyMOTD],
FamilyInfo[idx][FamilyColor],
FamilyInfo[idx][FamilyLeader],
FamilyInfo[idx][FamilyMembers],
FamilyInfo[idx][FamilySpawn][0],
FamilyInfo[idx][FamilySpawn][1],
FamilyInfo[idx][FamilySpawn][2],
FamilyInfo[idx][FamilySpawn][3],
FamilyInfo[idx][FamilyInterior]);
if(idx == 0)
{
file2 = fopen("cfg/families.cfg", io_write);
}
else
{
file2 = fopen("cfg/families.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return 1;
}
a ovo si dodaj u forwarde
forward SetPlayerToTeamColor(playerid);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward SendIRCMessage(channel, color, string[]);
forward SaveCK();
forward SaveFamilies();
forward SavePapers();
i sad ti mora da radi.