Hitmark Help | +Rep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hitmark Help | +Rep (
/showthread.php?tid=575746)
Hitmark Help | +Rep -
NickMirra - 29.05.2015
Made a timer for hitmark so it disables after 1 second, did all that and its saying this, dont really know whats looking wrong,
Код:
C:\Users\Nick\Desktop\PGRP.pwn(122807) : error 017: undefined symbol "issuerid"
C:\Users\Nick\Desktop\PGRP.pwn(122809) : error 017: undefined symbol "issuerid"
C:\Users\Nick\Desktop\PGRP.pwn(122810) : error 017: undefined symbol "issuerid"
C:\Users\Nick\Desktop\PGRP.pwn(122812) : error 017: undefined symbol "issuerid"
C:\Users\Nick\Desktop\PGRP.pwn(122818) : error 029: invalid expression, assumed zero
C:\Users\Nick\Desktop\PGRP.pwn(122818) : error 017: undefined symbol "SpecUpdate_yT@"
C:\Users\Nick\Desktop\PGRP.pwn(122818) : warning 215: expression has no effect
C:\Users\Nick\Desktop\PGRP.pwn(122818) : error 017: undefined symbol "SpecUpdate@yT_"
C:\Users\Nick\Desktop\PGRP.pwn(122818) : fatal error 107: too many error messages on one line
Код:
// Timer Name: Hitmark()
//TickRate: 1 Sec.
task Hitmark[1000](playerid, issuerid)
{
if(GetPVarInt(issuerid, "HitMark") > 0)
{
SetPVarInt(issuerid, "HitMark", GetPVarInt(i, "HitMark")-1);
if(GetPVarInt(issuerid, "HitMark") == 0)
{
TextDrawHideForPlayer(issuerid, HitMark);
}
}
// Timer Name: SpecUpdate()
// TickRate: 3 secs.
ptask SpecUpdate[3000](playerid)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(Spectating[playerid] >= 1)
{
if(Spectate[playerid] < 553)
{
new targetid = Spectate[ playerid ];
if( !IsPlayerConnected( targetid ) )
{
SendClientMessageEx( playerid, COLOR_WHITE, "The player you were spectating has left the server." );
GettingSpectated[Spectate[playerid]] = 999;
Spectating[playerid] = 0;
Spectate[playerid] = 999;
SetPVarInt(playerid, "SpecState", -1);
SetPVarInt(playerid, "SpecOff", 1 );
TogglePlayerSpectating( playerid, false );
SetCameraBehindPlayer(playerid);
}
}
if(Spectate[playerid] == 553)
{
TogglePlayerControllable(playerid, 1);
TogglePlayerSpectating(playerid, 0);
DeletePVar(playerid, "MedicBill");
SpawnPlayer( playerid );
Spectate[playerid] = 999;
Spectating[playerid] = 0;
}
if(Spectate[playerid] == 554)
{
TogglePlayerControllable(playerid, 1);
SetPlayerInterior(playerid,Unspec[playerid][sPint]);
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
SetPlayerPos(playerid, Unspec[playerid][Coords][0], Unspec[playerid][Coords][1], Unspec[playerid][Coords][2]);
Spectate[playerid] = 999;
}
if(Spectate[playerid] == 556)
{
SetPlayerToTeamColor(playerid);
Spectate[playerid] = 999;
}
if(Spectate[playerid] == 557)
{
Spectate[playerid] = 554;
}
}
}
}
Re: Hitmark Help | +Rep -
Yashas - 30.05.2015
Try re-installing YSI again.If the problem still persists then it could be a YSI bug since there is an error about "SpecUpdate@yT".
Also check if there are any unmatched { } or () or [].
122818 WTH is this?