16.05.2017, 23:55
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
Enums of DVehicles
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;
}
pawn Код:
enum vfInfo
{
dID,
dModel,
Float:dX,
Float:dY,
Float:dZ,
Float:dA,
dColor1,
dColor2,
Owner[24],
};