Help needed with repair pickups
#1

Hey today i was trying to create things like repair pickups But i wanna add a command on it
if im near the command should only work but i dont know how to :S
pawn Код:
AddRepairPickup(Float:x, Float:y, Float:z)
{
    CreatePickup(3096, 1, x, y, z + 0.2, 0); // Type 1, cannot be pickup up, exists all the time
    // Add a 3DText message above the refuel-pickup
    Create3DTextLabel("Drive into here", 0x008080FF, x, y, z + 0.8, 30.0, 0);
}
Thats the repair pickup thing and i wanna add this CMD to it
pawn Код:
CMD:repair(playerid, params[])
{
        if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y,z))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "Cock");
        }
}
But this doesnt work because it cant find the X,Y,Z of the AddRepairPickup how to fix this if you can help me i will thank you!

Thanks!
Reply
#2

Download "VAE" script,to set object positions,search it on ****** "vae"
Reply
#3

Use GetPVarFloat and SetPVarFloat.
Reply
#4

wtf? Please can you make a example O_O
Reply
#5

BUMP Give proper answers -.-
Reply
#6

replace those x y z in the cmd with the x y z of the pickup.
Reply
#7

Well i got this:
pawn Код:
AddRepairPickup(Float:x, Float:y, Float:z, playerid)
{
            // Store the pickup-id in this empty slot
            CreatePickup(1244, 1, x, y, z, 0); // Type 1, cannot be pickup up, exists all the time

            // Add a 3DText message above the refuel-pickup
            Create3DTextLabel("Tune and repair can be done here", 0x008080FF, x, y, z + 0.8, 30.0, 0);
            SetPVarFloat(playerid, "xpos", x);
            SetPVarFloat(playerid, "ypos", y);
            SetPVarFloat(playerid, "zpos", z);
}
Well this is the code that should do it but its not working because of the Playerid:
Код:
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2139) : error 017: undefined symbol "playerid"
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2140) : error 017: undefined symbol "playerid"
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2141) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
These lines are the SetPVarFloat's Anyone know how to fix this? It cant be with Forward and Public but how to create the Defenition in this thing? Please help!
Reply
#8

You got new update of server?
Reply
#9

not yet
Reply
#10

So download update and open your script with new PAWNO
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)