Error 017. dont know what to do -
MeNMyselv - 19.07.2011
hey guyz i have a problem,
when i compile a script it gives a couple errors:
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(279
: error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2800) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2875) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2876) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(287
: error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2879) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2880) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2881) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(2882) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7079) : error 017: undefined symbol "SetVehicleAngularVelocity"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7266) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7267) : error 017: undefined symbol "RemovePlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7270) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7271) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7272) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7273) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7274) : error 017: undefined symbol "SetPlayerAttachedObject"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7346) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
D:\Documents and Settings\ben\Mijn documenten\SAMP Server\filterscripts\0Admin.pwn(7347) : error 017: undefined symbol "RemovePlayerAttachedObject"
idk what to do but here are the lines:
lines 2798 -till- 2882:
Код:
if(IsPlayerAttachedObjectSlotUsed(playerid, i))
{
RemovePlayerAttachedObject(playerid, i);
}
}
KillTimer(MuteTimer[playerid] );
KillTimer(JailTimer[playerid] );
KillTimer(P_DATA[playerid][NosTimer] );
P_DATA[playerid][LogFail] = 0;
ClearVars(playerid);
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(success)
{
P_DATA[playerid][Cmds]++;
SetPVarInt(playerid, "0_Commands", P_DATA[playerid][Cmds]);
if(S_DATA[ReadCMD])
{
SendAdminCMD(playerid, ""GREY"[CMD] %s[%i] "W"used command{FF0000} %s", Name(playerid), playerid, cmdtext);
printf(#[%s] %s - %s, zDate(), Name(playerid), cmdtext);
}
}
else
{
P_DATA[playerid][fCmds]++;
SetPVarInt(playerid, "0_Fail_Commands", P_DATA[playerid][fCmds]) ;
return 0;
}
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
P_DATA[playerid][cSpam]++;
if(S_DATA[AntiCSpam] && (!IsPlayerAdmin(playerid) || P_DATA[playerid][Level] != 5))
{
if(P_DATA[playerid][cSpam] > MAX_CMD_SPAM && !IsPlayerAdmin(playerid))
{
BanEx2(playerid, .zReason = "Extreme command spam");
return 0;
}
else if(P_DATA[playerid][cSpam] > MIN_CMD_SPAM)
{
KickEx(playerid, .zReason = "Command spam");
return 0;
}
}
if(P_DATA[playerid][Jailed] && !P_DATA[playerid][JailTime] && P_DATA[playerid][Level] != 5 && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, Color:ORAN, "SERVER:"W" You are not allowed to use any commands while jailed! "GREY"[Jail Time: "ORAN"Forever"GREY"]");
return 0;
}
else if(P_DATA[playerid][Jailed] && P_DATA[playerid][JailTime] > 0 && P_DATA[playerid][Level] != 5 && !IsPlayerAdmin(playerid))
{
FormatMSG(playerid, Color:ORAN, "SERVER:"W" You are not allowed to use any commands while jailed! "GREY"[Jail Time: "ORAN"%d"GREY" minutes]", P_DATA[playerid][JailTime]);
return 0;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
#if SAVE_JAIL == true
if(GetPVarType(playerid, "FirstConnection"))
{
if(P_DATA[playerid][Incred])
{
for(new i = 0; i < 5; i++)
if(IsPlayerAttachedObjectSlotUsed(playerid, i))
RemovePlayerAttachedObject(playerid, i);
SetPlayerAttachedObject(playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000 );
lines 7079 -till- 7347:
Код:
SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 3.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~WOOSH!", 600, 3);
}
}
return 1;
}
CMD:bspeed(PARAMS)
{
if(P_DATA[playerid][Vip] > 0)
{
if(!P_DATA[playerid][Boost])
return SendError(playerid, "Speed Boost must be activated first! Activate it from "BLUE"/PCP");
new Speed;
if(sscanf(params, "d", Speed))
{
SendUsage(playerid, "/bspeed "GREY"<speed> "W"(Speed is betwen 0-30)", "Wil change speed boost!");
return 1;
}
else
{
switch(P_DATA[playerid][Vip])
{
case (1):
{
if(Speed < 0 || Speed > 10)
return SendError(playerid, "Level 1 VIP Members are allowed only up to "BLUE"10"W".");
}
case (2):
{
if(Speed < 0 || Speed > 20)
return SendError(playerid, "Level 2 VIP Members are allowed only up to "BLUE"20"W".");
}
case (3):
{
if(Speed < 0 || Speed > 30)
return SendError(playerid, "Level 3 VIP Members are allowed only up to "BLUE"30"W".");
}
}
new Float:Speed2 = Speed;
P_DATA[playerid][bSpeed] = (Speed) ? (Speed2 / 2.367) : (0.0) ;
P_DATA[playerid][Boost] = 1;
if(Speed)FormatMSG(playerid, ~1, "Speed Boost set to "BLUE"%d"W" ("BLUE"%.3f"W")", Speed, P_DATA[playerid][bSpeed]);
else
{
P_DATA[playerid][Boost] = 0;
P_DATA[playerid][bSpeed] = 0;
SendClientMessage(playerid, Color:ORAN, "Speed Boost disabled!");
}
}
}
else
{
SendError(playerid, "Only VIP members allowed!");
}
return 1;
}
FormatList(playerid)
{
new Str[1024];
strcat(Str, ""GREY"Name\n\
"GREY"Money\n\
"GREY"Score\n\
"GREY"Cookies\n\
"GREY"Respect\n\
"GREY"Kills\n\
"GREY"Deaths\n\
"GREY"Messages\n\
"GREY"Commands\n\
"GREY"Fail Commands\n\
"GREY"Online Time\n\
"GREY"Admin Level\n\
"GREY"VIP Level\n\
"GREY"Change Password", 1024);
if(playerid != GetPVarInt(playerid, "StatsOf"))
{
strcat(Str, "\n"ORAN"Ban Account\n\
"ORAN"Delete Account", 1024);
}
return Str;
}
FormatInside(playerid, Player, what[] = "z", extra[] = " ", zelse[] =" ")
{
new Str[256];
if(strcmp(what, "z", true))
{
if(Player == playerid){
format(Str, sizeof (Str), ""GREY"Changing "ORAN"your"GREY" %s\n\n"ORAN"%s", what, extra);}
else{
format(Str, sizeof (Str), ""GREY"Changing "ORAN"%s"GREY"'s %s\n\n"ORAN"%s", Name(Player), what, extra);}
}
else
format(Str, sizeof (Str), ""GREY"%s "ORAN"%s"GREY"'s %s\n\n"ORAN"Are you sure you want to %s this account?", zelse, Name(Player), extra, zelse);
return Str;
}
NameExist(name[])
{
foreach(Player, i)
{
if(!strcmp(name, Name(i), false)) return 1;
}
return 0;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(playerid != clickedplayerid)
{
ShowPlayerDialog(playerid, Dialog:CLICK, LIST, Name(clickedplayerid), ""BLUE"Send Personal Message\n\
"BLUE"Give Respect\n\
"BLUE"Give Money\n\
"BLUE"See Stats\n\
"ORAN"Report", "Select", "Exit");
SetPVarInt(playerid, "ClickedTO", clickedplayerid);
}else SendError(playerid, "Please select someone else other than you!");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new Query[500];
if(response)
{
iDialog<PCP>
{
switch(listitem)
{
case 1:
{
if(S_DATA[AutoLogin])
{
P_DATA[playerid][pAuto] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Auto-Login", ""BLUE"Auto-Login\n\n"W"This feature has been enabled!", "Back", "");
}
else
{
P_DATA[playerid][pAuto] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Auto-Login", ""BLUE"Auto-Login\n\n"W"This feature is not available!!", "Back", "");
}
}
case 2:
{
P_DATA[playerid][BAPMs] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Block PM", ""BLUE"Block Personal Messages\n\n"W"This feature has been enabled!", "Back", "");
}
case 3:
{
cmd_stats(playerid,"");
}
case 4: cmd_pcp(playerid, "");
case 5:
{
P_DATA[playerid][God] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Godlike", ""BLUE"Godlike\n\n"W"This feature has been enabled!\nYou won't loose health anymore.", "Back", "");
}
case 6:
{
P_DATA[playerid][CarGod] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle God", ""BLUE"Vehicle God\n\n"W"This feature has been enabled!\nYour vehicle won't be destroyed!", "Back", "");
}
case 7:
{
P_DATA[playerid][Boost] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle Boost", ""BLUE"Vehicle Boost\n\n"W"This feature has been enabled!\nPress "BLUE"Ctrl"W" to boost!\nUse "BLUE"/bspeed <value>"W" to change speed boost!", "Back", "");
}
case 8:
{
P_DATA[playerid][VIPTag] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Wear VIP Tag", ""BLUE"Wear VIP Tag\n\n"W"This feature has been enabled!\nYou have a "BLUE"VIP Member"W" label above head.", "Back", "");
Delete3DTextLabel(P_DATA[playerid][Tag3D]);
P_DATA[playerid][Tag3D] = Create3DTextLabel("VIP Member", Color:BLUE, 0.0, 0.0, 0.0, 90.0, 0, 1);
Attach3DTextLabelToPlayer(P_DATA[playerid][Tag3D], playerid, 0.0, 0.0, 1.2);
}
case 9: cmd_pcp(playerid, "");
case 10:
{
P_DATA[playerid][Spin] = 1;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle Spin", ""BLUE"Vehicle Spin\n\n"W"This feature has been enabled!\nPress "BLUE"2(Submission Key)"W" to spin!", "Back", "");
}
case 11:
{
for(new i = 0; i < 5; i++)
if(IsPlayerAttachedObjectSlotUsed(playerid, i))
RemovePlayerAttachedObject(playerid, i);
P_DATA[playerid][Incred] = 1;
SetPlayerAttachedObject(playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject(playerid, 4, 18965, 2, 0.111052, 0.021643, -0.000846, 92.280899, 92.752510, 358.071044, 1.200000, 1.283168, 1.200000 );
SPD(playerid, Dialog:PCPBack, BOX, ""W"Incredible", ""BLUE"Incredible\n\n"W"This feature has been enabled!\nCheck your character!", "Back", "");
}
case 12: cmd_pcp(playerid, "");
case 13:
{
SPD(playerid, Dialog:PCPShout, INPUT, ""W"Shout to the server!", ""W"Insert the text you want to shout:", "Insert", "Back");
}
}
}
}
else
{
iDialog<PCP>
{
switch(listitem)
{
case 1:
{
if(S_DATA[AutoLogin])
{
P_DATA[playerid][pAuto] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Auto-Login", ""BLUE"Auto-Login\n\n"W"This feature has been disabled!", "Back", "");
}
else
{
P_DATA[playerid][pAuto] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Auto-Login", ""BLUE"Auto-Login\n\n"W"This feature is not available!!", "Back", "");
}
}
case 2:
{
P_DATA[playerid][BAPMs] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Block PM", ""BLUE"Block Personal Messages\n\n"W"This feature has been disabled!", "Back", "");
}
case 3:
{
cmd_stats(playerid,"");
}
case 4: cmd_pcp(playerid, "");
case 5:
{
P_DATA[playerid][God] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Godlike", ""BLUE"Godlike\n\n"W"This feature has been disabled!\nYou will loose health.", "Back", "");
}
case 6:
{
P_DATA[playerid][CarGod] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle God", ""BLUE"Vehicle God\n\n"W"This feature has been disabled!\nYour vehicle can be destroyed!", "Back", "");
}
case 7:
{
P_DATA[playerid][Boost] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle Boost", ""BLUE"Vehicle Boost\n\n"W"This feature has been disabled!", "Back", "");
}
case 8:
{
P_DATA[playerid][VIPTag] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Wear VIP Tag", ""BLUE"Wear VIP Tag\n\n"W"This feature has been disabled!\nThe label has been deleted.", "Back", "");
Delete3DTextLabel(P_DATA[playerid][Tag3D]);
}
case 9: cmd_pcp(playerid, "");
case 10:
{
P_DATA[playerid][Spin] = 0;
SPD(playerid, Dialog:PCPBack, BOX, ""W"Vehicle Spin", ""BLUE"Vehicle Spin\n\n"W"This feature has been disabled!", "Back", "");
}
case 11:
{
for(new i = 0; i < 5; i++)
if(IsPlayerAttachedObjectSlotUsed(playerid, i))
RemovePlayerAttachedObject(playerid, i);
Srry if bad English but im Dutch.
THNX for interest and maybe for helping.
Re: Error 017. dont know what to do -
eDz0r - 19.07.2011
do you have includes from samp 0.3c?
Re: Error 017. dont know what to do -
King Ace - 19.07.2011
#include <a_samp>
Re: Error 017. dont know what to do -
SmileyForCheat - 19.07.2011
You Have 26 Errors?
If You have 26 Error
You Forgot To Close With }
In Your Script
Re: Error 017. dont know what to do -
MeNMyselv - 19.07.2011
@King Ace
it's already in the script. maybe another include?
@SmileyForCheat
no i have 19 errors. isn't there something else for 19 errors?
Re: Error 017. dont know what to do -
AndreT - 19.07.2011
Get the 0.3c includes (from
this package) and try compiling again!
Re: Error 017. dont know what to do -
lawonama - 19.07.2011
Try to download the newest version of a_samp.inc
Re: Error 017. dont know what to do -
MeNMyselv - 19.07.2011
@eDz0r
how do you mean? like sscanf2 and things like that??
Re: Error 017. dont know what to do -
MeNMyselv - 19.07.2011
@AndreT
thnx it worked no errors anymore