Help me please!! :(
#1

Hello, Somebody know how to compare ini values with loop? i use y_ini and i want that when a player enter on a car, gives a message like "This vehicle belongs to %s.." i make this code but doesn't work!! :C

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid... etc)
{
  for(new b = 0; b < sizeof(DVehicles); b++)
  {
    new pname[24], string[256];
    GetPlayerName(playerid, pname, 24);
    format(string,sizeof(string),"{FFFFFF}This vehicle belongs to %s", DVehicles[b][Owner]);
    SendClientMessage(playerid, -1, string);
  }


    return 1;
}
Enums of DVehicles
pawn Код:
enum vfInfo
{
    dID,
    dModel,  
    Float:dX,
    Float:dY,
    Float:dZ,
    Float:dA,
    dColor1,
    dColor2,
    Owner[24],
};
Reply


Messages In This Thread
Help me please!! :( - by Alejandro041 - 16.05.2017, 23:55
Re: Help me please!! :( - by Jefff - 16.05.2017, 23:59
Respuesta: Re: Help me please!! :( - by Alejandro041 - 17.05.2017, 00:02
Re: Help me please!! :( - by Jefff - 17.05.2017, 00:03
Respuesta: Re: Help me please!! :( - by Alejandro041 - 17.05.2017, 00:05
Re: Help me please!! :( - by Jefff - 17.05.2017, 00:08
Respuesta: Re: Help me please!! :( - by Alejandro041 - 17.05.2017, 00:13
Re: Help me please!! :( - by Jefff - 17.05.2017, 00:15
Respuesta: Re: Help me please!! :( - by Alejandro041 - 17.05.2017, 01:41
Re: Respuesta: Re: Help me please!! :( - by zedshadowzw - 17.05.2017, 02:11

Forum Jump:


Users browsing this thread: 4 Guest(s)