problem - 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: problem (
/showthread.php?tid=161085)
problem -
[NTX]MikeQ - 18.07.2010
I have problem with this it show 1 error
pawn Код:
if(GetPlayerScore(playerid) >150)
{
SetPlayerArmour(playerid,75);
GivePlayerWeapon(playerid,WEAPON_DEAGLE,500);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z)
CreateVehicle(469, X+10, Y, Z, 90, 0, 0, 1);
}
return 1;
}
It show this
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(253) : error 001: expected token: ";", but found "-identifier-"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(390) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Line 253 = CreateVehicle(469, X+10, Y, Z, 90, 0, 0, 1);
And im not sure if it will spawn a sparrow for a player that score is greater than 150 on spawn.
Re: problem -
[XST]O_x - 18.07.2010
pawn Код:
if(GetPlayerScore(playerid) >150)
{
SetPlayerArmour(playerid,75);
GivePlayerWeapon(playerid,WEAPON_DEAGLE,500);
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateVehicle(469, X+10, Y, Z, 90, 0, 0, 1);
}
return 1;
}
Re: problem -
[NTX]MikeQ - 19.07.2010
Wait i need so the sparrow spawns in front is X+10 in front? of the player?
Re: problem -
[XST]O_x - 19.07.2010
If you're using the casual GetPlayerPos then it'll spawn in front of the player only if he's facing north somewhy.
But in order for the vehicle to spawn in front of the player in all cases,you can use GetXYInFrontOfPlayer.
https://sampwiki.blast.hk/wiki/Stocks#Re...ultiple_values
Re: problem -
[NTX]MikeQ - 19.07.2010
Ok il try it