06.05.2012, 14:40
hey guys,
is there a way to put more things in a return?
so for example:
// codes here
return ShowMenuForPlayer(startmenu, playerid) HasCar[playerid] = 1;
or:
return
{
ShowMenuForPlayer(startmenu, playerid);
HasCar[playerid] = 1;
}
i already tried both of these but is there another way to make this? cuz it would be really nice and would be lot faster in my ondialogresponse cuz else i have to add: HasCar[playerid] = 1; then i have to add that on 570 lines and that takes damn much time AND makes teh script twice that huge , so anyone knows a way to make the return that way?
greets niels
is there a way to put more things in a return?
so for example:
// codes here
return ShowMenuForPlayer(startmenu, playerid) HasCar[playerid] = 1;
or:
return
{
ShowMenuForPlayer(startmenu, playerid);
HasCar[playerid] = 1;
}
i already tried both of these but is there another way to make this? cuz it would be really nice and would be lot faster in my ondialogresponse cuz else i have to add: HasCar[playerid] = 1; then i have to add that on 570 lines and that takes damn much time AND makes teh script twice that huge , so anyone knows a way to make the return that way?
greets niels