Help Plz [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: Help Plz [REP] (
/showthread.php?tid=529603)
Help Plz [REP] -
Naresh - 03.08.2014
Thanks Guys the Prob Is Fixed ty. del all the codes.
Re: Help Plz [REP] -
ViniBorn - 03.08.2014
Put your code into [pawn] [/*pawn]
What is the 6 line?
Re: Help Plz [REP] -
Naresh - 03.08.2014
Count from top.. from the New Bool
Line 6 - [/Pawn]return 1;[pawn]
Re: Help Plz [REP] -
ViniBorn - 03.08.2014
Try replace
pawn Код:
IsPlayerAtService(playerid)
{
for (new i; i < sizeof(AServicePickups); i++)
if(IsPlayerInRangeOfPoint(playerid, 4.0, AServicePickups[i][pux], AServicePickups[i][puy], AServicePickups[i][puz]))
return true;
return false;
}
Re : Help Plz [REP] -
TheDzGhost - 03.08.2014
pawn Код:
bool:IsPlayerAtService(playerid)
{
for (new bool:i; i < sizeof(AServicePickups); i++)
if(IsPlayerInRangeOfPoint(playerid, 4.0, AServicePickups[i][pux], AServicePickups[i][puy], AServicePickups[i][puz]))
return 1;
return 0;
}
CMD:scredits(playerid, params[]) // DO NOT REMOVE THIS!
{
SendAdminText(playerid, "/scredits", params);
SendClientMessage(playerid, -1, "{FFFF00}Service System Made By {FF0000}ZiX");
return 1;
}
CMD:service(playerid, params[])
{
SendAdminText(playerid, "/service", params);
if(GetPlayerVehicleSeat(playerid) != 0) SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Error: {FFFFFF}You are not the driver of a vehicle!");
else if(!IsPlayerAtService(playerid)) SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Error: {FFFFFF}You are not at a service place!");
else
{
ShowPlayerDialog(playerid, DialogService, DIALOG_STYLE_LIST, "{FFFF00}Service", "{FFFFFF}Repair {00FF00}$500\r\n{FFFFFF}Repair Trailer: {00FF00}$500\r\n{FFFFFF}Nitro: {00FF00}$500\r\n{FFFFFF}Hydraulics: {00FF00}$1000\r\n{FFFFFF}Wheels: {00FF00}$1000\r\n{FFFFFF}Color1: {00FF00}$300\r\n{FFFFFF}Color2: {00FF00}$200\r\n{FFFFFF}Trailer Color: {00FF00}$300\r\n", "Ok", "Cancel");
}
return 1;
}
Take this , try it
Re: Re : Help Plz [REP] -
Naresh - 03.08.2014
Quote:
Originally Posted by TheDzGhost
pawn Код:
bool:IsPlayerAtService(playerid) {
for (new bool:i; i < sizeof(AServicePickups); i++) if(IsPlayerInRangeOfPoint(playerid, 4.0, AServicePickups[i][pux], AServicePickups[i][puy], AServicePickups[i][puz])) return 1; return 0; }
CMD:scredits(playerid, params[]) // DO NOT REMOVE THIS! { SendAdminText(playerid, "/scredits", params); SendClientMessage(playerid, -1, "{FFFF00}Service System Made By {FF0000}ZiX"); return 1; }
CMD:service(playerid, params[]) { SendAdminText(playerid, "/service", params); if(GetPlayerVehicleSeat(playerid) != 0) SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Error: {FFFFFF}You are not the driver of a vehicle!"); else if(!IsPlayerAtService(playerid)) SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Error: {FFFFFF}You are not at a service place!"); else { ShowPlayerDialog(playerid, DialogService, DIALOG_STYLE_LIST, "{FFFF00}Service", "{FFFFFF}Repair {00FF00}$500\r\n{FFFFFF}Repair Trailer: {00FF00}$500\r\n{FFFFFF}Nitro: {00FF00}$500\r\n{FFFFFF}Hydraulics: {00FF00}$1000\r\n{FFFFFF}Wheels: {00FF00}$1000\r\n{FFFFFF}Color1: {00FF00}$300\r\n{FFFFFF}Color2: {00FF00}$200\r\n{FFFFFF}Trailer Color: {00FF00}$300\r\n", "Ok", "Cancel"); } return 1; }
Take this , try it ![Smiley](images/smilies/smile.png)
|
i get
pawn Код:
F:\ppc - Drug Dev Back Up\pawno\include\PPC_PlayerCommands.inc(4) : warning 213: tag mismatch
F:\ppc - Drug Dev Back Up\pawno\include\PPC_PlayerCommands.inc(6) : warning 213: tag mismatch
F:\ppc - Drug Dev Back Up\pawno\include\PPC_PlayerCommands.inc(7) : warning 213: tag mismatch
Re: Help Plz [REP] -
Naresh - 03.08.2014
Quote:
Originally Posted by ViniBorn
Try replace
pawn Код:
IsPlayerAtService(playerid) { for (new i; i < sizeof(AServicePickups); i++) if(IsPlayerInRangeOfPoint(playerid, 4.0, AServicePickups[i][pux], AServicePickups[i][puy], AServicePickups[i][puz])) return true;
return false; }
|
ur code worked ty bro !