SA-MP Forums Archive
2 errors please help - 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: 2 errors please help (/showthread.php?tid=459911)



2 errors please help - Tuntun - 25.08.2013

I downloaded the Truckingmissions include to script a new mission system and i getting this errors:
Код:
E:\My server\pawno\include\YSI\y_debug.inc(382) : warning 219: local variable "s" shadows a variable at a preceding level
E:\My server\pawno\include\TruckingMissions.inc(242) : error 004: function "OnPlayerFinishMission" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: 2 errors please help - xganyx - 25.08.2013

give us your code than we can help you


Re: 2 errors please help - Tuntun - 25.08.2013

219 like is:
public OnPlayerDeath(playerid, killerid, reason)


Re: 2 errors please help - CrazyChoco - 25.08.2013

Since you gave us that little Line of code, ill simply tell you what the error is.
OnPlayerFinishMission is not implemented.


Re: 2 errors please help - Tuntun - 25.08.2013

Код:
public OnPlayerFinishMission(playerid)
{
    SendClientMessage(playerid, 0x00FF00FF, "You have delivered the load!");
    IsPlayerInMission[playerid] = 0;
    return 1;
}



Re: 2 errors please help - cray1100 - 25.08.2013

s is defined already, in two sripts... one, y-debug... two, your script... And if you implemented it, it shall be good now...

I dont see any other problem... You just showed us that is IS implemented,,, And the s... is what i just said...


Re: 2 errors please help - Tuntun - 25.08.2013

Than what is the problem? should i show the full script?


Re: 2 errors please help - ProjectMan - 25.08.2013

Firstly, put this in your GAME MODE:

pawn Код:
public OnPlayerFinishMission(playerid)
{
    return 1;
}
Then use this modified TruckingMissions.inc (the scripter should have use better variable name...):
Here


Re: 2 errors please help - Tuntun - 25.08.2013

i fixed this but still problems.. please fix it fully:

http://pastebin.com/bWrXJq8x


Re: 2 errors please help - Konstantinos - 25.08.2013

I think the function "OnPlayerFinishMission" is not implemented means that you have forward OnPlayerFinishMission, but you do not have the public. Anyways, the error comes from the TruckingMissions include file, so this is what you have to show us.