05.04.2010, 09:00
How can i create something like that with PVars?(Int)
How can i do something like that? It will print always "0" as it is the Set that will be used. I dont want to do it manually Car1 Car2 up to Car10
pawn Code:
for(new i;i<10;i++)
{
if(i == 0) SetPVarInt(playerid, "Car[i]", 600);
else if(i == 5) SetPVarInt(playerid, "Car[i]", 560);
else SetPVarInt(playerid, "Car[i]", 0);
}
for(new i;i<10;i++)
{
printf("Number %d Value %d", i, GetPVarInt(playerid, "Car[i]"));
}