Command [+REP]
#1

I ordered " / towveh " for the dealership , and when you have a personal car with help from the command " / towveh " to respawn ! But it does not work , I do not respawn car!
Explain the functions: VehiclesInfo[v][vOwner] => ID player from database
PlayerInfo[playerid][pID] => ID player from database

Код HTML:
CMD:towveh(playerid, params[])
{
	for(new v = 0; v < MAX_VEHICLES; v++)
	{
		if(VehiclesInfo[v][vOwner] == PlayerInfo[playerid][pID])
		{
			SetVehicleToRespawn(v);
	 	}
	 	return 1;
	}
	return 1;
}
Reply
#2

pawn Код:
CMD:towveh(playerid, params[])
{
    for(new v = 0; v < MAX_VEHICLES; v++)
    {
        if(VehiclesInfo[v][vOwner] == PlayerInfo[playerid][pID])
        {
            SetVehicleToRespawn(v);
                        return 1;
        }
       
    }
    return 1;
}
Reply
#3

the does n't work
not working
Reply
#4

////
Reply
#5

PHP код:
CMD:towveh(playeridparams[])
{
    for(new 
0MAX_VEHICLESv++)
    {
        if(
VehiclesInfo[v][vOwner] == PlayerInfo[playerid][pID])
        {
            
SetVehicleToRespawn(v);
         }
    }
    return 
1;
}
Try 
this 
Reply
#6

@Humza:
LOG:
Код HTML:
[10:39:33] [debug] #0 0006b0d0 in public cmd_towveh (playerid=0, params[]=@001df928 "") at C:\Users\Bruker\Desktop\UG GM\gamemodes\w3op.pwn:6766
[10:39:33] [debug] #1 native CallLocalFunction () from samp-server.exe
[10:39:33] [debug] #2 0000cff0 in public OnPlayerCommandText (playerid=0, cmdtext[]=@001df908 "/towveh") at C:\Users\Bruker\Desktop\UG GM\pawno\include\zcmd.inc:102
Line:
Код HTML:
if(VehiclesInfo[v][vOwner] == PlayerInfo[playerid][pID])
The function " SetVehicleToRespawn " works correctly !
Reply
#7

Quote:
Originally Posted by norton2
Посмотреть сообщение
@Humza:
LOG:
Код HTML:
[10:39:33] [debug] #0 0006b0d0 in public cmd_towveh (playerid=0, params[]=@001df928 "") at C:\Users\Bruker\Desktop\UG GM\gamemodes\w3op.pwn:6766
[10:39:33] [debug] #1 native CallLocalFunction () from samp-server.exe
[10:39:33] [debug] #2 0000cff0 in public OnPlayerCommandText (playerid=0, cmdtext[]=@001df908 "/towveh") at C:\Users\Bruker\Desktop\UG GM\pawno\include\zcmd.inc:102
Line:
Код HTML:
if(VehiclesInfo[v][vOwner] == PlayerInfo[playerid][pID])
The function " SetVehicleToRespawn " works correctly !
if SetVehicleToRespawn working fine then where u getting error?
Reply
#8

when "SetVehicleToRespawn " works , not getting Error
Reply
#9

Quote:
Originally Posted by norton2
Посмотреть сообщение
when "SetVehicleToRespawn " works , not getting Error
So what u want now?
Reply
#10

As my car to respawn !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)