Job 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: Job Help (
/showthread.php?tid=520118)
Job Help -
M0HAMMAD - 17.06.2014
************ Please Some One Help
-----------------------------------------------------------------------
Hi all
I create a trucker job whit normal check point.
but i want changed to race checkpoint because is bug.when player enter checkpoint the checkpoint
nothing give player . no score - money or ... .because i want change to race checkpoint
So.
This Is The Line 3803
pawn Код:
SetPlayerCheckpoint(playerid,tcp[rand][0],tcp[rand][1],tcp[rand][2],tcp[rand][3]);
And When I Change The SetPlayerCheckpoint To SetPlayerRaceCheckPoint The Complier Give Me This Errrors :
pawn Код:
.pwn(3803) : warning 213: tag mismatch
.pwn(3803) : warning 202: number of arguments does not match definition
.pwn(3803) : warning 202: number of arguments does not match definition
.pwn(3803) : warning 202: number of arguments does not match definition
.pwn(3803) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Warnings.
Re: Job Help -
kosa451 - 17.06.2014
These are warnings, you dont have to fix them.
Re: Job Help -
Clad - 17.06.2014
Quote:
if(IsPlayerInRangeOfPoint(playerid, You can chose the place) && PlayerInfo[playerid][pJob]== JobID && JobDuty[playerid] == 1)
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Mission successfull.");
GiveScore(playerid, 10);
DisablePlayerCheckpoint(playerid);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
|
It does work just like this, You can edit other things such job id ect
Quote:
public OnPlayerEnterCheckpoint(playerid)
{
new newcar = GetPlayerVehicleID(playerid);
|
I beleive this will be usefull.
Re: Job Help -
AndySedeyn - 17.06.2014
-NVM, you did-
Re: Job Help -
Threshold - 18.06.2014
Код:
SetPlayerRaceCheckpoint(playerid, type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size);
Read the wiki for god sakes...
https://sampwiki.blast.hk/wiki/SetPlayerRaceCheckpoint
This is not the scripting request thread, don't ask people to make your scripts for you here.