array must be indexed problem
#4

Hmm.. I cant get it work.. No errors now:
Quote:

dcmd_buycar(playerid, params[])
{
new car;
new carid[256];
format(carid, 256, "%d", GetPlayerVehicleID(playerid));
new confirm[64];
sscanf(params, "s", confirm);
if(strcmp(params, carid, true) == 0)
{
if(car == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "This car is not for sale!");
}
else if(car == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "You bought this car for $10000, check /vhelp for commands.");
dini_Create(carid);
dini_Set(carid, "name", file);
}
}
else
{
if(GetVehicleModel(playerid) == 404)
{
SendClientMessage(playerid, COLOR_YELLOW, "This car costs $10000, type /buycar confirm to buy it.");
car = 1;
}
}
}

Reply


Messages In This Thread
array must be indexed problem - by Danand - 08.04.2009, 22:16
Re: array must be indexed problem - by Castle - 08.04.2009, 22:25
Re: array must be indexed problem - by hanzen - 08.04.2009, 22:27
Re: array must be indexed problem - by Danand - 08.04.2009, 22:46
Re: array must be indexed problem - by Weirdosport - 08.04.2009, 23:21
Re: array must be indexed problem - by hanzen - 09.04.2009, 00:12
Re: array must be indexed problem - by 13th - 09.04.2009, 05:51

Forum Jump:


Users browsing this thread: 1 Guest(s)