SA-MP Forums Archive
Can someone - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can someone (/showthread.php?tid=126901)



Can someone - Torran - 10.02.2010

Can someone script me a /park command for this fs:

http://forum.sa-mp.com/index.php?topic=54114.0

Dont redirect me to Script Request Topic,
As i already have several posts in there,
Its been there for 2/3 days, And as of yet,
Have not got a code and/or got anyone telling me they'd make one



Re: Can someone - Onyx09 - 10.02.2010

i feel like helping today lol :P well lets try im a download it


Re: Can someone - Torran - 10.02.2010

Quote:
Originally Posted by [GM
LeGenDy ]
i feel like helping today lol :P well lets try im a download it
Thanks


Re: Can someone - Onyx09 - 10.02.2010

Код:
	if(strcmp(cmd, "/park",true) == 0)
	{
    if(IsPlayerConnected(playerid))
    {
		  if(PlayerInfo[playerid][pCarKey] >= 1)
		  {
				new Float:pX,Float:pY,Float:pZ;
	  		GetPlayerPos(playerid,pX,pY,pZ);
	  		new Float:pAngle;
	  		GetPlayerFacingAngle(playerid,pAngle);
				PlayerInfo[playerid][cLocationx] = Float:pX; 
				PlayerInfo[playerid][cLocationy] = Float:pY; 
				PlayerInfo[playerid][cLocationz] = Float:pZ; 
				PlayerInfo[playerid][cAngle] = Float:pAngle; 
				SendClientMessage(playerid,COLOR_WHITE, " You Have Parked Your Car In this place ");
				return 1;
			}
		}
		return 1;
	}
try this and tell me if it works didnt test it xD


Re: Can someone - Torran - 11.02.2010

pawn Код:
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(209) : warning 213: tag mismatch
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(209) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(210) : warning 213: tag mismatch
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(210) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(211) : warning 213: tag mismatch
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(211) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(212) : warning 213: tag mismatch
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(212) : error 032: array index out of bounds (variable "PlayerInfo")
C:\Users\Torran\AppData\Local\Temp\Rar$DI00.953\[FS]CarOwnership.pwn(446) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.



Re: Can someone - Onyx09 - 11.02.2010

mhm ill check that again and make it work i have time to test now give me some minutes


Re: Can someone - Torran - 11.02.2010

Quote:
Originally Posted by [GM
LeGenDy ]
mhm ill check that again and make it work i have time to test now give me some minutes
Okie Dokie