Need HELP! Please help me. -
eclipses - 12.10.2012
Hello there. My vehicle storage system dosent work as it could.
When i do /vstorage is shows the vehicles as stored.
And when i do /vstorage and try to store and destore them it dosent work.
Could some one help me?
They don't just wont spawn and despawn.....
Can anyone help me. Need to get this working.
Those is all i know of posting.
Код:
#define VSTORAGE 1024
Код:
CMD:vstorage(playerid, params[])
{
new vstring[1024];
for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
}
else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
}
else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
}
else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]);
}
else strcat(vstring, "\nEmpty");
}
ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
return 1;
}
Re: Need HELP! Please help me. -
HyDrAtIc - 12.10.2012
Does it show any errors while compiling?
Re: Need HELP! Please help me. -
eclipses - 12.10.2012
Quote:
Originally Posted by James_Nick
Does it show any errors while compiling?
|
Nop it dosent show any error at all. The commands /vstorage works ingame.
The problem is that it's saying (Stored) when i do /vstorage in-game.
And the vehicles won't spawn/despawn then i click on the button
AW: Need HELP! Please help me. -
BiosMarcel - 12.10.2012
Have you created the Dialog?
Re: AW: Need HELP! Please help me. -
eclipses - 12.10.2012
Quote:
Originally Posted by [Bios]Marcel
Have you created the Dialog?
|
The dialog is popping up when i do /vstorage
AW: Need HELP! Please help me. -
BiosMarcel - 12.10.2012
You must say what should happens when you click on the spawn/cancel button
if(dialogid==....)
{
if(response==1)
{
if(listitem=0=)
{
}
}
if(response==0)
{
}
}
Re: AW: Need HELP! Please help me. -
eclipses - 12.10.2012
Quote:
Originally Posted by [Bios]Marcel
You must say what should happens when you click on the spawn/cancel button
if(dialogid==....)
{
if(response==1)
{
if(listitem=0=)
{
}
}
if(response==0)
{
}
}
|
But how do i put those in. I tryd everything, checking in wiki and on the forum. Non is explaining. :/ Might you help me?