problem
#1

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.
Reply
#2

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;
}
Reply
#3

Wait i need so the sparrow spawns in front is X+10 in front? of the player?
Reply
#4

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
Reply
#5

Ok il try it
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)